Documentation ¶
Index ¶
- func NewWrappedStream(ctx context.Context, stream grpc.ServerStream) grpc.ServerStream
- type Server
- type ServerOption
- func Address(address string) ServerOption
- func Options(grpcOpts ...grpc.ServerOption) ServerOption
- func StreamInterceptor(in ...grpc.StreamServerInterceptor) ServerOption
- func TLSConfig(c *tls.Config) ServerOption
- func Timeout(timeout time.Duration) ServerOption
- func UnaryInterceptor(in ...grpc.UnaryServerInterceptor) ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWrappedStream ¶
func NewWrappedStream(ctx context.Context, stream grpc.ServerStream) grpc.ServerStream
Types ¶
type ServerOption ¶
type ServerOption func(s *Server)
func StreamInterceptor ¶
func StreamInterceptor(in ...grpc.StreamServerInterceptor) ServerOption
StreamInterceptor 配置流拦截器。
func UnaryInterceptor ¶
func UnaryInterceptor(in ...grpc.UnaryServerInterceptor) ServerOption
UnaryInterceptor 配置一元拦截器。
Click to show internal directories.
Click to hide internal directories.