Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 668704d

Browse files
authored
Made MethodHandler exportable and comments added
1 parent 500e8c0 commit 668704d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ func init() {
8787
var statusOK = status.New(codes.OK, "")
8888
var logger = grpclog.Component("core")
8989

90+
// MethodHandler is a function type that processes a unary RPC method call.
9091
type MethodHandler func(srv any, ctx context.Context, dec func(any) error, interceptor UnaryServerInterceptor) (any, error)
9192

9293
// MethodDesc represents an RPC service's method specification.

0 commit comments

Comments
 (0)