config

package
v0.0.0-...-6bb48ea Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotConfig

type BotConfig struct {
	ChannelId                int    `toml:"channel_id"`
	ChannelSecret            string `toml:"channel_secret"`
	MID                      string `toml:"channel_mid"`
	ClientWorkerQueueSize    int    `toml:"client_worker_queue_size"`
	EventDispatcherQueueSize int    `toml:"event_dispatcher_queue_size"`
}

type Config

type Config struct {
	Web *WebConfig `toml:"web"`
	Bot *BotConfig `toml:"bot"`
}

func LoadFromFile

func LoadFromFile(filePath string) *Config

type WebConfig

type WebConfig struct {
	Host string `toml:"host"`
	Port int    `toml:"port"`
}

func (*WebConfig) Address

func (wc *WebConfig) Address() string

Jump to

Keyboard shortcuts

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