Documentation ¶
Index ¶
Constants ¶
View Source
const AppName = "skeleton"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { Log *zap.Logger Cfg *Configuration // contains filtered or unexported fields }
func (*App) ContextDone ¶
ContextDone indicates whether an App's internal context has expired or been canceled We cancel the internal context on SIGTERM or SIGINT to signal anything interested that it's time to go.
func (*App) WaitForSignal ¶
func (a *App) WaitForSignal()
WaitForSignal blocks on the Server's internal signal channel until we catch SIGTERM or SIGINT
type Configuration ¶
type Configuration struct { ListenAddress string `mapstructure:"listen_address"` DeveloperMode bool `mapstructure:"developer_mode"` JWTAuth []ginjwt.AuthConfig `mapstructure:"ginjwt_auth"` }
func LoadConfiguration ¶
func LoadConfiguration(cfgFile string) (*Configuration, error)
LoadConfiguration opens and parses the configuration file and then applies any environmental overrides
Click to show internal directories.
Click to hide internal directories.