Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server is an GRPC server wrapper.
func NewServer ¶
func NewServer(opts ...ServerOption) *Server
NewServer creates an HTTP server by options.
func (*Server) Endpoint ¶
Endpoint return a real address to registry endpoint. examples:
grpc://127.0.0.1:9000?isSecure=false
type ServerOption ¶
type ServerOption func(*Server)
ServerOption is an HTTP server option.
func WithOptions ¶
func WithOptions(opts ...grpc.ServerOption) ServerOption
WithOptions with grpc options.
func WithUnaryInterceptor ¶
func WithUnaryInterceptor(in ...grpc.UnaryServerInterceptor) ServerOption
WithUnaryInterceptor returns a ServerOption that sets the UnaryServerInterceptor for the server.
Click to show internal directories.
Click to hide internal directories.