config

package
v0.0.0-...-d850389 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL