Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadCertConfig = fmt.Errorf("cert file and key file must both be supplied or both be omitted")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { HTTPHost string `env:"http_host" file:"http_host" default:"0.0.0.0"` HTTPPort int `env:"http_port" file:"http_port" default:"5000"` HTTPCertFile string `env:"http_cert_file" file:"http_cert_file"` HTTPKeyFile string `env:"http_key_file" file:"http_key_file"` RawShutdownTimeout int `env:"http_shutdown_timeout" file:"http_shutdown_timeout" mask:"true" default:"5"` ShutdownTimeout time.Duration }
type ConfigFunc ¶
type ConfigFunc func(*options)
ConfigFunc is a function used to configure an instance of a Worker.
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.