Documentation ¶
Index ¶
- func New(opts ...ServerOption) (server.IServer, error)
- type Server
- type ServerOption
- func WithServerHealthServer(healthServer grpc_health_v1.HealthServer) ServerOption
- func WithServerOptionID(id string) ServerOption
- func WithServerOptionName(name string) ServerOption
- func WithServerOptionPost(post int) ServerOption
- func WithServerOptionServiceRegisterCenter(serviceRegisterCenter registry.IRegistrar) ServerOption
- func WithServerOptionServiceRegisterHost(host string) ServerOption
- func WithServerOptionServiceRegisterInfo(serviceRegisterInfo *registry.ServiceRegisterInfo) ServerOption
- func WithServerOptionSignal(signals []os.Signal) ServerOption
- func WithServerOptionTimeout(timeout time.Duration) ServerOption
- func WithServerRegisterServer(registerServer func(server *grpc.Server)) ServerOption
- func WithServerServerOptions(serverOptions []grpc.ServerOption) ServerOption
- func WithServerStreamServerInterceptors(streamServerInterceptors []grpc.StreamServerInterceptor) ServerOption
- func WithServerUnaryServerInterceptors(unaryServerInterceptors []grpc.UnaryServerInterceptor) ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServerOption ¶
type ServerOption func(s *Server)
func WithServerHealthServer ¶
func WithServerHealthServer(healthServer grpc_health_v1.HealthServer) ServerOption
func WithServerOptionID ¶
func WithServerOptionID(id string) ServerOption
func WithServerOptionName ¶
func WithServerOptionName(name string) ServerOption
func WithServerOptionPost ¶
func WithServerOptionPost(post int) ServerOption
func WithServerOptionServiceRegisterCenter ¶
func WithServerOptionServiceRegisterCenter(serviceRegisterCenter registry.IRegistrar) ServerOption
func WithServerOptionServiceRegisterHost ¶
func WithServerOptionServiceRegisterHost(host string) ServerOption
func WithServerOptionServiceRegisterInfo ¶
func WithServerOptionServiceRegisterInfo(serviceRegisterInfo *registry.ServiceRegisterInfo) ServerOption
func WithServerOptionSignal ¶
func WithServerOptionSignal(signals []os.Signal) ServerOption
func WithServerOptionTimeout ¶
func WithServerOptionTimeout(timeout time.Duration) ServerOption
func WithServerRegisterServer ¶
func WithServerRegisterServer(registerServer func(server *grpc.Server)) ServerOption
func WithServerServerOptions ¶
func WithServerServerOptions(serverOptions []grpc.ServerOption) ServerOption
func WithServerStreamServerInterceptors ¶
func WithServerStreamServerInterceptors(streamServerInterceptors []grpc.StreamServerInterceptor) ServerOption
func WithServerUnaryServerInterceptors ¶
func WithServerUnaryServerInterceptors(unaryServerInterceptors []grpc.UnaryServerInterceptor) ServerOption
Click to show internal directories.
Click to hide internal directories.