config

package
v0.0.0-...-68943de Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceName = "applications-service"

Functions

This section is empty.

Types

type Applications

type Applications struct {
	Service          `mapstructure:"service"`
	Events           `mapstructure:"events"`
	Postgres         `mapstructure:"postgres"`
	Jobs             `mapstructure:"jobs"`
	*certs.TLSConfig `mapstructure:"tls"`
	// contains filtered or unexported fields
}

Applications service specific config options

func (*Applications) GetIngester

func (s *Applications) GetIngester() ingester.Client

GetIngester returns the ingester client for the service

func (*Applications) GetStorage

func (s *Applications) GetStorage() storage.Client

GetStorage returns the storage client for the service

func (*Applications) SetIngester

func (s *Applications) SetIngester(i ingester.Client)

SetIngester sets the ingester client for the service

func (*Applications) SetStorage

func (s *Applications) SetStorage(c storage.Client)

SetStorage sets the storage client for the service

type Events

type Events struct {
	Host      string `mapstructure:"host"`
	Port      int    `mapstructure:"port"`
	ClusterID string `mapstructure:"cluster_id"`
}

Events holds configuration to connect to the NATS server inside the event-service

type Jobs

type Jobs struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
}

type Postgres

type Postgres struct {
	URI          string `mapstructure:"uri"`
	Database     string `mapstructure:"database"`
	SchemaPath   string `mapstructure:"schema_path"`
	MaxOpenConns int    `mapstructure:"max_open_conns"`
	MaxIdleConns int    `mapstructure:"max_idle_conns"`
}

type Service

type Service struct {
	Host        string `mapstructure:"host"`
	Port        int    `mapstructure:"port"`
	MetricsPort int    `mapstructure:"metrics_port"`
	LogLevel    string `mapstructure:"log_level"`
}

Service is a base config options struct for all services

func (*Service) SetLogLevel

func (s *Service) SetLogLevel()

SetLogLevel sets the log level for the service

Jump to

Keyboard shortcuts

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