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 ¶
FromBuffer loads default global configuration from a specified byte buffer.
Click to show internal directories.
Click to hide internal directories.