app

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

Application encapsulates a jackal server application.

func New

func New(output io.Writer, args []string) *Application

New returns a runnable application given an output and a command line arguments array.

func (*Application) Run

func (a *Application) Run() (int, error)

Run runs jackal application until either a stop signal is received or an error occurs.

type Config

type Config struct {
	PIDFile    string           `yaml:"pid_path"`
	Debug      debugConfig      `yaml:"debug"`
	Logger     loggerConfig     `yaml:"logger"`
	Storage    storage.Config   `yaml:"storage"`
	Router     router.Config    `yaml:"router"`
	Modules    module.Config    `yaml:"modules"`
	Components component.Config `yaml:"components"`
	C2S        []c2s.Config     `yaml:"c2s"`
	S2S        *s2s.Config      `yaml:"s2s"`
}

Config represents a global configuration.

func (*Config) FromBuffer

func (cfg *Config) FromBuffer(buf *bytes.Buffer) error

FromBuffer loads default global configuration from a specified byte buffer.

func (*Config) FromFile

func (cfg *Config) FromFile(configFile string) error

FromFile loads default global configuration from a specified file.

Jump to

Keyboard shortcuts

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