Documentation ¶
Index ¶
- type EmptyCompressor
- type Server
- type ServerOption
- func Address(addr string) ServerOption
- func AllowHealthCheck(allow bool) ServerOption
- func AllowReflection(allow bool) ServerOption
- func Compressor(compressor encoding.Compressor) ServerOption
- func GRPCOptions(opts ...grpc.ServerOption) ServerOption
- func Network(network string) ServerOption
- func StreamInterceptor(in ...grpc.StreamServerInterceptor) ServerOption
- func TLSConfig(c *tls.Config) ServerOption
- func UnaryInterceptor(in ...grpc.UnaryServerInterceptor) ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyCompressor ¶
type EmptyCompressor string
type ServerOption ¶
type ServerOption func(*Server)
func AllowHealthCheck ¶
func AllowHealthCheck(allow bool) ServerOption
AllowHealthCheck determines whether to use health.
func AllowReflection ¶
func AllowReflection(allow bool) ServerOption
AllowReflection determines whether to use reflection.
func Compressor ¶
func Compressor(compressor encoding.Compressor) ServerOption
Compressor with server address.
func GRPCOptions ¶
func GRPCOptions(opts ...grpc.ServerOption) ServerOption
GRPCOptions with grpc options.
func StreamInterceptor ¶
func StreamInterceptor(in ...grpc.StreamServerInterceptor) ServerOption
StreamInterceptor returns a ServerOption that sets the StreamServerInterceptor for the server.
func UnaryInterceptor ¶
func UnaryInterceptor(in ...grpc.UnaryServerInterceptor) ServerOption
UnaryInterceptor returns a ServerOption that sets the UnaryServerInterceptor for the server.
Click to show internal directories.
Click to hide internal directories.