config

package
v0.0.0-...-2932577 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Conf = &Config{}

Conf синглтон конфигурации

Functions

This section is empty.

Types

type ActionOptions

type ActionOptions struct {
	Args []string          `json:"args"`
	Env  map[string]string `json:"env"`
}

ActionOptions опции для запуска действия

func (*ActionOptions) EnvAsSlice

func (o *ActionOptions) EnvAsSlice() []string

EnvAsSlice возвращает Env в формате слайса строк вида "name=value".

type Config

type Config struct {
	Logger util.LoggingConfig

	Name             string
	ActionPath       string
	Replicas         int
	Port             int
	ServiceSock      string
	InRaw            string
	OutRaw           string
	ActionOptionsRaw string

	ACKPeriodRaw  string
	ForwardLogDir string

	In            []string
	Out           []string
	ActionOptions *ActionOptions

	ACKPeriod time.Duration
}

Config конфигурация для запуска runtime

func (*Config) Parse

func (c *Config) Parse() error

Parse загружает данные конфига.

Jump to

Keyboard shortcuts

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