Skip to content

Commit c131662

Browse files
committed
fix: update
1 parent 8aff61b commit c131662

33 files changed

+632
-242
lines changed

Makefile

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ docker:
6363
build-all:
6464
go build -tags "kcp quic" ./...
6565

66-
deps:
67-
go list -f '{{ join .Deps "\n"}}' ./... |grep "/" | grep -v "github.com/smallnest/rpcx"| grep "\." | sort |uniq
68-
6966
cover:
7067
gocov test -tags "kcp quic" ./... | gocov-html > cover.html
7168
open cover.html
@@ -79,32 +76,6 @@ update-libs:
7976
mod-tidy:
8077
GIT_TERMINAL_PROMPT=1 GO111MODULE=on go mod tidy
8178

82-
mac:
83-
GOOS=darwin go build -ldflags="-s -w" -ldflags="-X 'main.BuildTime=$(version)'" -o goctl-darwin goctl.go
84-
$(if $(shell command -v upx), upx goctl-darwin)
85-
win:
86-
GOOS=windows go build -ldflags="-s -w" -ldflags="-X 'main.BuildTime=$(version)'" -o goctl.exe goctl.go
87-
$(if $(shell command -v upx), upx goctl.exe)
88-
linux:
89-
GOOS=linux go build -ldflags="-s -w" -ldflags="-X 'main.BuildTime=$(version)'" -o goctl-linux goctl.go
90-
$(if $(shell command -v upx), upx goctl-linux)
91-
92-
changelog:
93-
docker run --rm \
94-
--interactive \
95-
--tty \
96-
-e "CHANGELOG_GITHUB_TOKEN=${CHANGELOG_GITHUB_TOKEN}" \
97-
-v "$(PWD):/usr/local/src/your-app" \
98-
ferrarimarco/github-changelog-generator:1.14.3 \
99-
-u grpc-ecosystem \
100-
-p grpc-gateway \
101-
--author \
102-
--compare-link \
103-
--github-site=https://github.com \
104-
--unreleased-label "**Next release**" \
105-
--release-branch=master \
106-
--future-release=v2.3.0
107-
10879
vet:
10980
@go vet ./...
11081

@@ -114,4 +85,4 @@ generate:
11485
.PHONY: install
11586
install:
11687
@go install -v github.com/tinylib/msgp
117-
@go install -v github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
88+
@go install -v github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2

codecov.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
coverage:
2+
range: "60...95"
3+
status:
4+
project:
5+
default:
6+
threshold: 1%
7+
8+
comment:
9+
layout: 'diff'

entry/ergo/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package ergo
2+
3+
// https://github.com/halturin/ergo

example/proto/hello/api.pb.go

Lines changed: 38 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/proto/hello/api.pb.lug.go

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/proto/hello/api.swagger.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,21 @@
129129
"properties": {
130130
"input": {
131131
"type": "string"
132+
},
133+
"lists": {
134+
"type": "array",
135+
"items": {
136+
"type": "object"
137+
}
138+
},
139+
"headers": {
140+
"type": "object",
141+
"additionalProperties": {
142+
"type": "array",
143+
"items": {
144+
"type": "object"
145+
}
146+
}
132147
}
133148
}
134149
}
@@ -211,6 +226,21 @@
211226
},
212227
"name": {
213228
"type": "string"
229+
},
230+
"lists": {
231+
"type": "array",
232+
"items": {
233+
"type": "object"
234+
}
235+
},
236+
"headers": {
237+
"type": "object",
238+
"additionalProperties": {
239+
"type": "array",
240+
"items": {
241+
"type": "object"
242+
}
243+
}
214244
}
215245
}
216246
},
@@ -229,6 +259,14 @@
229259
},
230260
"description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }"
231261
},
262+
"protobufNullValue": {
263+
"type": "string",
264+
"enum": [
265+
"NULL_VALUE"
266+
],
267+
"default": "NULL_VALUE",
268+
"description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value."
269+
},
232270
"rpcStatus": {
233271
"type": "object",
234272
"properties": {

example/proto/hello/api.validator.pb.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)