Documentation ¶
Overview ¶
Package grpc provides a grpc server
Index ¶
- Variables
- func AuthTLS(t *tls.Config) server.Option
- func Codec(contentType string, c encoding.Codec) server.Option
- func GRPCWebOptions(opts ...grpcweb.Option) server.Option
- func GRPCWebPort(addr string) server.Option
- func Listener(l net.Listener) server.Option
- func MaxConn(n int) server.Option
- func MaxMsgSize(s int) server.Optiondeprecated
- func MaxRecvMsgSize(s int) server.Option
- func MaxSendMsgSize(s int) server.Option
- func NewServer(opts ...server.Option) server.Server
- func Options(opts ...grpc.ServerOption) server.Option
- func ServiceFromMethod(m string) string
- func ServiceMethod(m string) (string, string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultMaxRecvMsgSize maximum message that client can receive // (16 MB). DefaultMaxRecvMsgSize = 1024 * 1024 * 16 // DefaultMaxSendMsgSize maximum message that client can send // (16 MB). DefaultMaxSendMsgSize = 1024 * 1024 * 16 )
Functions ¶
func GRPCWebOptions ¶
GRPCWebOptions to be used to start a gRPC Web server
func GRPCWebPort ¶
GRPCWebPort to be used to start a gRPC Web server
func MaxMsgSize
deprecated
func MaxRecvMsgSize ¶
MaxRecvMsgSize set the maximum size of message that server can receive.
func MaxSendMsgSize ¶
MaxSendMsgSize set the maximum size of message that server can send.
func Options ¶
func Options(opts ...grpc.ServerOption) server.Option
Options to be used to configure gRPC options
func ServiceFromMethod ¶
ServiceFromMethod returns the service /service.Foo/Bar => service
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.