sirenaXML

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvLearning   = "GRU"
	EnvTesting    = "GRT"
	EnvProduction = "GRS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientID                 uint16 `yaml:"client_id"`
	MaxConnections           uint32 `yaml:"max_connections"`
	Ip                       string `yaml:"ip"`
	Environment              string `yaml:"environment"`
	ClientPublicKey          string `yaml:"client_public_key"`
	ClientPrivateKey         string `yaml:"client_private_key"`
	ClientPrivateKeyPassword string `yaml:"client_private_key_password"`
	ServerPublicKey          string `yaml:"server_public_key"`
	ZippedMessaging          bool   `yaml:"zipped_messaging"`
	MaxConnectTries          int    `yaml:"max_connect_tries"`
}

func (*Config) GetAddr

func (config *Config) GetAddr() (string, error)

GetAddr return sirena address to connect client to

func (*Config) PrepareKeys

func (config *Config) PrepareKeys() error

Jump to

Keyboard shortcuts

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