Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
Server is the framework's server side instance, it contains the GrpcServer, interceptor and interceptors. Create an instance of Server, by using NewServer().
func NewServer ¶
func NewServer(conf *Config, o ...grpc.ServerOption) (s *Server)
NewServer create a grpc server instance
func (*Server) GrpcServer ¶
func (*Server) HealthService ¶
func (*Server) OnStop ¶ added in v0.1.5
OnStop add stop hook to grpc server when server got terminating signal 默认传入一个10s的timeout的context
Click to show internal directories.
Click to hide internal directories.