config

package
v0.0.0-...-9e6d8ee Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 2 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GLobalEnableCompression = gob.CompresTypeZlib

GLobalEnableCompression -

View Source
var GlobalSplitterName = "/code.afis.me/"

GlobalSplitterName -

Functions

This section is empty.

Types

type BrokersModules

type BrokersModules struct {
	Name        string    `yaml:"name"`
	Bin         string    `yaml:"bin"`
	Managed     bool      `yaml:"managed"`
	CaptureLogs bool      `yaml:"capturelogs"`
	CmdLine     []CmdLine `yaml:"cmdline"`
}

BrokersModules -

type CmdLine

type CmdLine struct {
	Type        string      `yaml:"type"`
	Key         string      `yaml:"key"`
	Value       interface{} `yaml:"value"`
	Description string      `yaml:"description"`
}

CmdLine -

type Config

type Config struct {
	TimeZone     string `yaml:"timezone"`
	LogsLocation string `yaml:"logslocation"`
	Database     string `yaml:"database"`
	Server       struct {
		Port        int         `yaml:"port"`
		Host        string      `yaml:"host"`
		TLS         bool        `yaml:"tls"`
		Crt         string      `yaml:"crt"`
		Key         string      `yaml:"key"`
		KeySize     int         `yaml:"keySize"`
		Domains     []string    `yaml:"domains"`
		IPAddress   []string    `yaml:"ipaddress"`
		DefaultUser DefaultUser `yaml:"defaultuser"`
	} `yaml:"server"`
	Rates   []RatesModules   `yaml:"rates"`
	Brokers []BrokersModules `yaml:"brokers"`
}

Config -

type DefaultUser

type DefaultUser struct {
	Name     string `yaml:"name"`
	Email    string `yaml:"email"`
	Password string `yaml:"password"`
}

DefaultUser -

type RatesModules

type RatesModules struct {
	Name        string    `yaml:"name"`
	Bin         string    `yaml:"bin"`
	Managed     bool      `yaml:"managed"`
	CaptureLogs bool      `yaml:"capturelogs"`
	CmdLine     []CmdLine `yaml:"cmdline"`
}

RatesModules -

type ServerAddress

type ServerAddress struct {
	DeviceID string               `json:"deviceID"`
	Address  string               `json:"address"`
	Port     int                  `json:"port"`
	TLS      bool                 `json:"tls"`
	UseProxy bool                 `json:"useProxy"`
	Proxy    controllers.NewProxy `json:"proxy"`
}

ServerAddress -

Jump to

Keyboard shortcuts

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