config

package
v0.0.0-...-994a392 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2014 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbSettings

type DbSettings struct {
	DSN          string
	MaxOpenConns int
	MaxIdleConns int
}

type IrcSettings

type IrcSettings struct {
	Host          string
	Port          string
	Nick          string
	NickPass      string
	Pass          string
	Ssl           bool
	NormalChannel string `json:"normal_channel"`
	StaffChannel  string `json:"staff_channel"`
	MaxFailures   int
	Timeout       uint
	KeepAlive     uint `json:"keep_alive"`
	PingFreq      uint `json:"ping_frequency"`
	AutoVoice     bool
	Version       string
	Debug         bool
	PluginsDir    string `json:"plugin_dir"`
}

type Settings

type Settings struct {
	Irc    IrcSettings
	Db     DbSettings
	Stream StreamSettings
	Debug  bool
}

func Load

func Load() *Settings

type StreamSettings

type StreamSettings struct {
	StatsURL  string `json:"stats_url"`
	StatsUser string `json:"stats_user"`
	StatsPass string `json:"stats_pass"`
}

Jump to

Keyboard shortcuts

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