kevwan
Repos
100
Followers
1476
Following
23

A cloud-native Go microservices framework with cli tool for productivity.

21661
3095

A cli tool to proxy and analyze TCP connections.

2497
172

go-stash is a high performance, free and open source server-side data processing pipeline that ingests data from Kafka, processes it, and then sends it to ElasticSearch.

875
110

Kafka, Beanstalkd Pub/Sub framework.

474
78

go-zero examples

511
167

Data syncing in golang for ClickHouse.

871
120

Events

update qr code

Created at 9 hours ago
pull request opened
Update README.md
Created at 1 day ago

Update README.md

Created at 1 day ago

chore: remove stringx.ToCamelCase

Created at 1 day ago
closed issue
为什么k8s Target一定要port呢?

在go-zero中解析k8s target的时候,为什么一定要port呢,我看到k8s的库是有返回port的。请教下什么原因

func ParseTarget(target resolver.Target) (Service, error) {
	var service Service
	service.Namespace = targets.GetAuthority(target)
	if len(service.Namespace) == 0 {
		service.Namespace = defaultNamespace
	}

	endpoints := targets.GetEndpoints(target)
	segs := strings.SplitN(endpoints, colon, 2)
	if len(segs) < 2 {
		return emptyService, fmt.Errorf("bad endpoint: %s", endpoints)
	}

	service.Name = segs[0]
	port, err := strconv.Atoi(segs[1])
	if err != nil {
		return emptyService, err
	}

	service.Port = port

	return service, nil
}
Created at 1 day ago

The default port is used when there is no port number for k8s (#2598)

  • k8s 没有端口号时使用默认端口

  • Modify the not port test

Created at 1 day ago
pull request closed
The default port is used when there is no port number for k8s

Target: k8s://namespace/service-rpc-svc:8001 To Target: k8s://namespace/service-rpc-svc

Created at 1 day ago
issue comment
CamelCase test case

I'm going to remove it. Thanks for pointing it out.

Created at 1 day ago

fix(rest): fix issues#2628 (#2629)

fix: log currentSize should not be 0 when file exists and size is not 0 (#2639)

k8s 没有端口号时使用默认端口

Modify the not port test

Created at 1 day ago
issue comment
The default port is used when there is no port number for k8s

Fix #2636

Created at 1 day ago

Update troubleshooting.md

Merge pull request #53 from Guwengo/patch-1

Update troubleshooting.md

Created at 2 days ago
pull request closed
Update troubleshooting.md

添加一个,使用环境变量的时候要怎么配置

Created at 2 days ago

chore: add blank lines

Created at 3 days ago

feat: accept camelcase for config keys

chore: remove unused variables

chore: rename key option func

Created at 3 days ago

fix: log currentSize should not be 0 when file exists and size is not 0 (#2639)

Merge branch 'master' into feat/conf-camelcase

Created at 3 days ago

fix: log currentSize should not be 0 when file exists and size is not 0 (#2639)

Created at 3 days ago
pull request closed
fix: log currentSize should not be 0 when file exists and size is not 0

When application restart, the currentSize reset to 0. If it uses fileSizeRotation, the size will larger than max size, but not rotate.

Created at 3 days ago

chore: rename key option func

Created at 3 days ago

chore: remove unused variables

Created at 3 days ago

fix(rest): fix issues#2628 (#2629)

Merge branch 'master' into feat/conf-camelcase

Created at 3 days ago
issue comment
feature : responses whit context

Sorry, it's a breaking change.

Created at 3 days ago
pull request closed
bugFix use CGO [string: `, error: EOF`] Error

bugFix use CGO [string: ``, error: EOF] Error Info

Created at 4 days ago
issue comment
bugFix use CGO [string: `, error: EOF`] Error

Duplicate of #2635

Created at 4 days ago
issue comment
bugFix use CGO [string: `, error: EOF`] Error

What's the problem? How to reproduce it?

Created at 4 days ago

fix(rest): fix issues#2628 (#2629)

Created at 5 days ago
closed issue
go-zero v1.4.2 TracingHandler Bug

1669119140966

defer next.ServeHTTP(w, r) cause span.IsRecording() is false in my handler

I cant' set other attributes to span.

Please check order of defers or

r = r.WithContext(spanCtx)
next.ServeHTTP(w, r)

It work fine in older version.

Thanks.

Created at 5 days ago
pull request closed
fix(rest): fix issues#2628

fixed #2628

Created at 5 days ago