File tree 1 file changed +2
-23
lines changed
1 file changed +2
-23
lines changed Original file line number Diff line number Diff line change 1
1
## Change log
2
2
3
- 1 . Adjust errcode package, support custom error message.
4
-
5
- example:
6
-
7
- ``` go
8
- // http code
9
- // code(10003) and message
10
- ecode.InvalidParams .Err (" custom error message" )
11
- // code(400) and message
12
- ecode.InvalidParams .ErrToHTTP (" custom error message" )
13
-
14
- // grpc code
15
- // code(30003) and message
16
- ecode.StatusInvalidParams .Err (" custom error message" )
17
- // code(3) and message
18
- ecode.StatusInvalidParams .ToRPCErr (" custom error message" )
19
- // code(30003) and message, use in grpc-gateway
20
- ecode.StatusInvalidParams .ErrToHTTP (" custom error message" )
21
- ```
22
-
23
- 2 . Optimize print log, grpc support custom marshal data.
24
-
25
- 3 . Adjust some code.
3
+ 1 . Fix logging bug [ #59 ] ( https://github.com/zhufuyi/sponge/issues/59 ) .
4
+ 2 . Add custom jwt authentication in grpc service.
You can’t perform that action at this time.
0 commit comments