config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProcess

func NewProcess(config *Config) *goforever.Process

Types

type Config

type Config struct {
	IP          string
	Port        string
	Username    string
	Password    string
	Daemonize   bool
	Pidfile     goforever.Pidfile
	Debug       bool
	Logfile     string
	Errfile     string
	TLSCertfile string
	TLSKeyfile  string
	Processes   []*goforever.Process `toml:"process"`
}

func Load

func Load(file string) (*Config, error)

func New

func New() *Config

func (*Config) Add

func (c *Config) Add(processes ...*goforever.Process) *Config

func (*Config) Export added in v0.2.0

func (cfg *Config) Export(file string) error

func (*Config) Get

func (c *Config) Get(key string) *goforever.Process

func (*Config) Keys

func (c *Config) Keys() []string

Jump to

Keyboard shortcuts

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