Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLogFormat = errors.New("unknown log format, valid values are 'text' or 'json'") ErrInvalidLogLevel = errors.New("unknown log level, valid values are 'trace', 'debug', 'info', 'warn', 'error', 'fatal' or 'panic'") )
Functions ¶
func ConfigureLogger ¶
Types ¶
type Config ¶
type Config struct { Port string `default:"8080"` Log LogConfig MemoryStorage MemoryStorageConfig }
func ReadConfig ¶
type MemoryStorageConfig ¶
type MemoryStorageConfig struct {
WorldsFilePath string `default:"init/storage/inmemory/worlds.yml"`
}
Click to show internal directories.
Click to hide internal directories.