conf

package
v2.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterConfiguration

type ClusterConfiguration struct {
	InMemory              bool     `schema:"Хранить логи и снэпшоты только в памяти"`
	BootstrapCluster      bool     `schema:"Поднимать кластер и объявлять лидером"`
	DataDir               string   `valid:"required~Required" schema:"Пусть до директории для логов и снэпшотов рафта"`
	Peers                 []string `valid:"required~Required" schema:"Адреса всех нод в кластере,формат address:port"`
	OuterAddress          string   `valid:"required~Required" schema:"Внешний адрес ноды"`
	ConnectTimeoutSeconds int      `valid:"required~Required" schema:"Таймаут подключения"`
}

type Configuration

type Configuration struct {
	Database         structure.DBConfiguration      `` /* 144-byte string literal not displayed */
	GrpcOuterAddress structure.AddressConfiguration `valid:"required~Required" json:"grpcOuterAddress"`
	ModuleName       string                         `valid:"required~Required"`
	WS               WebService                     `valid:"required~Required" schema:"Конфигурация веб сервиса"`
	Metrics          structure.MetricConfiguration
	Cluster          ClusterConfiguration `valid:"required~Required"`
}

type WebService

type WebService struct {
	Rest                    structure.AddressConfiguration `valid:"required~Required"`
	Grpc                    structure.AddressConfiguration `valid:"required~Required"`
	WsConnectionReadLimitKB int64                          `` /* 203-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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