Documentation ¶
Index ¶
- type Server
- type ServerOption
- func Address(address string) ServerOption
- func CustomHealth() ServerOption
- func Debug() ServerOption
- func Endpoint(endpoint *url.URL) ServerOption
- func Env(env string) ServerOption
- func Listener(lis net.Listener) ServerOption
- func Network(network string) ServerOption
- func Options(opts ...grpc.ServerOption) ServerOption
- func PrintAccessLog() ServerOption
- func ServiceName(name string) ServerOption
- func TLSConfig(c *tls.Config) ServerOption
- func Timeout(t time.Duration) ServerOption
- func TraceFilterNames(names ...string) ServerOption
- func UnaryInterceptors(in ...grpc.UnaryServerInterceptor) ServerOption
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server is a gRPC server wrapper.
func NewServer ¶
func NewServer(opts ...ServerOption) *Server
NewServer creates a gRPC server with options
func (*Server) Endpoint ¶
Endpoint returns a real address to registry endpoint. examples: grpc://127.0.0.1:9000?isSecure=false
func (*Server) OpentracingInterceptor ¶
func (s *Server) OpentracingInterceptor() grpc.UnaryServerInterceptor
type ServerOption ¶
type ServerOption func(*Server)
func Address ¶
func Address(address string) ServerOption
func CustomHealth ¶
func CustomHealth() ServerOption
func Debug ¶
func Debug() ServerOption
func Endpoint ¶
func Endpoint(endpoint *url.URL) ServerOption
func Env ¶
func Env(env string) ServerOption
func Listener ¶
func Listener(lis net.Listener) ServerOption
func Network ¶
func Network(network string) ServerOption
func Options ¶
func Options(opts ...grpc.ServerOption) ServerOption
func PrintAccessLog ¶
func PrintAccessLog() ServerOption
func ServiceName ¶
func ServiceName(name string) ServerOption
func TLSConfig ¶
func TLSConfig(c *tls.Config) ServerOption
func Timeout ¶
func Timeout(t time.Duration) ServerOption
func TraceFilterNames ¶
func TraceFilterNames(names ...string) ServerOption
func UnaryInterceptors ¶
func UnaryInterceptors(in ...grpc.UnaryServerInterceptor) ServerOption
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport is a gRPC transport
func (*Transport) ReplyHeader ¶
func (*Transport) RequestHeader ¶
Click to show internal directories.
Click to hide internal directories.