Documentation ¶
Index ¶
- Constants
- func WithoutGracefulShutdown() opt
- type Config
- type Environment
- type Manager
- func (m *Manager) App() string
- func (m *Manager) Context() context.Context
- func (m *Manager) Env() Environment
- func (m *Manager) ForceKill()
- func (m *Manager) Logger() util.Logger
- func (m *Manager) Metrics() util.Metrics
- func (m *Manager) RegisterBackgroundSvc(name string, starter backgroundSvcStarter, stopper backgroundSvcStopper)
- func (m *Manager) RegisterGRPCServer(name string, port string, opts ...grpc.ServerOption) *grpc.Server
- func (m *Manager) RegisterHttpServer(name string, srv *http.Server)
- func (m *Manager) WaitForInterrupt()
Constants ¶
View Source
const ( EnvLocal Environment = "local" EnvTest = "test" EnvDevelopment = "development" EnvProduction = "production" )
Variables ¶
This section is empty.
Functions ¶
func WithoutGracefulShutdown ¶
func WithoutGracefulShutdown() opt
Types ¶
type Config ¶
type Config struct { AppName string `env:"APP"` Env Environment `env:"ENV" envDefault:"local"` DatadogIP string `env:"DATADOG_IP"` DatadogPort string `env:"DATADOG_PORT"` }
type Environment ¶
type Environment string
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) Env ¶
func (m *Manager) Env() Environment
func (*Manager) RegisterBackgroundSvc ¶
func (*Manager) RegisterGRPCServer ¶
func (*Manager) RegisterHttpServer ¶
func (*Manager) WaitForInterrupt ¶
func (m *Manager) WaitForInterrupt()
Click to show internal directories.
Click to hide internal directories.