Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server of gRpc
func DefaultServer ¶
func DefaultServer(opts ...ServerOption) *Server
DefaultServer 默认的grpc server入口
func (*Server) GetListener ¶
GetListener get servers listener
func (*Server) RegisterService ¶
func (s *Server) RegisterService(desc *grpc.ServiceDesc, impl interface{})
RegisterService register gRpc service
type ServerOption ¶
type ServerOption func(server *Server)
ServerOption gRpc server option
func GrpcOptions ¶
func GrpcOptions(opts ...grpc.ServerOption) ServerOption
Options set gRpc server options
func StreamInterceptor ¶
func StreamInterceptor(in ...grpc.StreamServerInterceptor) ServerOption
StreamInterceptor register stream interceptors
func UnaryInterceptor ¶
func UnaryInterceptor(in ...grpc.UnaryServerInterceptor) ServerOption
UnaryInterceptor register unary interceptors
Click to show internal directories.
Click to hide internal directories.