Documentation ¶
Index ¶
- func WithGrpcPort(p int) withGrpcPort
- func WithGrpcServerOption(serverOpts ...grpc.ServerOption) grpcServerOption
- func WithInterceptor(unary []grpc.UnaryServerInterceptor, stream []grpc.StreamServerInterceptor) interceptorConfigure
- func WithLogger(logger pkglogger.Logger) serverLogger
- type GrpcServer
- type GrpcServerConfigurer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithGrpcPort ¶
func WithGrpcPort(p int) withGrpcPort
func WithGrpcServerOption ¶
func WithGrpcServerOption(serverOpts ...grpc.ServerOption) grpcServerOption
func WithInterceptor ¶
func WithInterceptor(unary []grpc.UnaryServerInterceptor, stream []grpc.StreamServerInterceptor) interceptorConfigure
func WithLogger ¶
Types ¶
type GrpcServer ¶
func NewGrpcServer ¶
func NewGrpcServer(cfgs ...GrpcServerConfigurer) *GrpcServer
func (*GrpcServer) GracefulStop ¶
func (g *GrpcServer) GracefulStop()
func (*GrpcServer) ListenAndServe ¶
func (g *GrpcServer) ListenAndServe() error
func (*GrpcServer) LocalAddr ¶
func (g *GrpcServer) LocalAddr() (string, error)
type GrpcServerConfigurer ¶
type GrpcServerConfigurer interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.