Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigFunc ¶
type ConfigFunc func(*options)
ConfigFunc is a function used to configure an instance of a GRPC Server.
func WithServerOptions ¶
func WithServerOptions(opts ...grpc.ServerOption) ConfigFunc
WithServerOptions sets grpc options on the underlying server.
func WithTagModifiers ¶
func WithTagModifiers(modifiers ...config.TagModifier) ConfigFunc
WithTagModifiers applies the given tag modifiers on config load.
type Server ¶
type Server struct { Logger nacelle.Logger `service:"logger"` Services nacelle.ServiceContainer `service:"container"` Health nacelle.Health `service:"health"` // contains filtered or unexported fields }
func NewServer ¶
func NewServer(initializer ServerInitializer, configs ...ConfigFunc) *Server
type ServerInitializer ¶
Click to show internal directories.
Click to hide internal directories.