config

package
v0.0.0-...-512bbbe Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	P2P_PORT     = 64702             // Port for communication between nodes
	P2P_PROTOCOL = "feirm.service.1" // Protocol version to be used between different nodes
)

==================== Service Layer Daemon ====================

View Source
const (
	MAX_MESSAGE_BODY      = 102400 // 100KB Limit
	MAX_TTL               = 86400  // 24 hours
	MAX_CONCURRENCY_LIMIT = 25
)

==================== Messenger Layer ====================

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() error

Types

type Config

type Config struct {
	Server struct {
		Address  string   `toml:"address"`
		HttpPort int      `toml:"http_port"`
		Seeds    []string `toml:"seeds"`
	} `toml:"server"`
	Wallet struct {
		Username string `toml:"username"`
		Password string `toml:"password"`
		Host     string `toml:"host"`
		Port     int    `toml:"port"`
	} `toml:"wallet"`
}
var (
	Seeds         []string
	Configuration Config
)

Jump to

Keyboard shortcuts

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