Documentation
¶
Overview ¶
Package server provides types that creates and runs server instances
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMux = runtime.NewServeMux(runtime.WithMarshalerOption(runtime.MIMEWildcard, &runtime.JSONPb{MarshalOptions: protojson.MarshalOptions{EmitUnpopulated: true}}))
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
func NewGateway ¶
type NewGatewayOption ¶
type NewGatewayOption func(g *Gateway)
func WithGrpcDialOption ¶
func WithGrpcDialOption(opts ...grpc.DialOption) NewGatewayOption
func WithTLSConfig ¶
func WithTLSConfig(t *tls.Config) NewGatewayOption
type NewServerOption ¶
type NewServerOption func(*Server)
func WithGrpcOption ¶
func WithGrpcOption(opts ...grpc.ServerOption) NewServerOption
func WithLogger ¶
func WithLogger(lgr logger.Logger) NewServerOption
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...NewServerOption) (*Server, error)
func (*Server) ForceShutdown ¶
func (s *Server) ForceShutdown()
Click to show internal directories.
Click to hide internal directories.