config

package
v0.0.0-...-8d8f565 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "geos"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server server.Config
	Log    log.Config

	Clickhouse clickhouse.Config `mapstructure:"CLICKHOUSE"`
	LogExport  clickhouse.LogExporterConfig

	GRPCServiceBindAddress config.Address `` /* 127-byte string literal not displayed */
	GRPCServiceAddress     config.Address `mapstructure:"GRPC_SERVICE_ADDRESS" description:"GRPC public address"`

	GeoDbPath    string `mapstructure:"GEOIP_DB_PATH" description:"Path to GeoLite2 or GeoIP2 city database"`
	GeoDbISPPath string `mapstructure:"GEOIP_DB_ISP_PATH" description:"Path to GeoIP2 ISP database"`

	Discovery common.Config `mapstructure:"DISCOVERY"`

	GeoNameDumpDirPath  string `` /* 289-byte string literal not displayed */
	GeoIPCsvDumpDirPath string `` /* 218-byte string literal not displayed */
	ApiKey              string `mapstructure:"API_KEY" description:"API key for dumps used for importing into other databases"`
}

func (*Config) NeedGrpc

func (c *Config) NeedGrpc() bool

func (*Config) SetDefaults

func (c *Config) SetDefaults()

SetDefaults ...

func (*Config) Validate

func (c *Config) Validate() error

Validate ...

Jump to

Keyboard shortcuts

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