Documentation ¶
Index ¶
- type CoverageConfig
- func (config *CoverageConfig) AsCliFlags() []cli.Flag
- func (config *CoverageConfig) GetConnectionString() string
- func (config *CoverageConfig) GetDatabaseName() string
- func (config *CoverageConfig) GetServiceHost() string
- func (config *CoverageConfig) LoadCoverageConfig(filename string) (*CoverageConfig, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoverageConfig ¶
type CoverageConfig struct { ConfigFilename string DatabaseType string `json:"database_type"` DatabaseName string `json:"database_name"` DatabaseHost string `json:"database_host"` DatabasePort int `json:"database_port"` ServiceHost string `json:"service_host"` ServicePort string `json:"service_port"` PromPort string `json:"prom_port"` }
CoverageConfig provide commandline flags for the Coverage Service.
var Config *CoverageConfig
func (*CoverageConfig) AsCliFlags ¶
func (config *CoverageConfig) AsCliFlags() []cli.Flag
AsCliFlags returns a slice of cli.Flag.
func (*CoverageConfig) GetConnectionString ¶
func (config *CoverageConfig) GetConnectionString() string
func (*CoverageConfig) GetDatabaseName ¶
func (config *CoverageConfig) GetDatabaseName() string
func (*CoverageConfig) GetServiceHost ¶
func (config *CoverageConfig) GetServiceHost() string
func (*CoverageConfig) LoadCoverageConfig ¶
func (config *CoverageConfig) LoadCoverageConfig(filename string) (*CoverageConfig, error)
InstanceConfigFromFile returns the deserialized JSON of an InstanceConfig found in filename.
If there was an error loading the file a list of schema violations may be returned also.
Click to show internal directories.
Click to hide internal directories.