config

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

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"`
	*certs.TLSConfig `mapstructure:"tls"`
	// contains filtered or unexported fields
}

Applications service specific config options

func (*Applications) GetStorage

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

GetStorage returns the storage 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 Postgres

type Postgres struct {
	URI        string `mapstructure:"uri"`
	Database   string `mapstructure:"database"`
	SchemaPath string `mapstructure:"schema_path"`
}

type Service

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

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