Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CommitHash string BuildDate string )
Version information, assigned by ldflags
Functions ¶
This section is empty.
Types ¶
type AmazonS3Settings ¶
type AmazonS3Settings struct { AccessKeyID string SecretAccessKey string Bucket string Region string Endpoint string Scheme string }
AmazonS3Settings is the configuration related to the Amazon S3.
type Config ¶
type Config struct { ServiceSettings ServiceSettings S3Settings AmazonS3Settings LogSettings LogSettings }
Config is the configuration for a bifrost server.
func ParseConfig ¶
ParseConfig reads the config file and returns a new *Config, This method overrides values in the file if there is any environment variables corresponding to a specific setting.
type LogSettings ¶
type LogSettings struct { EnableConsole bool ConsoleLevel string ConsoleJSON bool `json:"ConsoleJson"` EnableFile bool FileLevel string FileJSON bool `json:"FileJson"` FileLocation string }
LogSettings is the configuration for the logger.
Click to show internal directories.
Click to hide internal directories.