config

package
v0.0.0-...-dd27f12 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2015 License: Zlib Imports: 3 Imported by: 1

Documentation

Overview

Package config holds the configuration for Tetra.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AthemeConfig

type AthemeConfig struct {
	URL      string
	Username string
	Password string
}

Atheme configuration

type Config

type Config struct {
	Autoload []string
	Services []*ServiceConfig
	Server   *ServerConfig
	Uplink   *UplinkConfig
	Stats    *StatsConfig
	ApiKeys  map[string]string
	General  *GeneralConfig
	Modules  map[string]interface{}
	Etcd     struct {
		Machines []string
	}
	Atheme *AthemeConfig
}

Struct Config defines the configuration for Tetra.

func NewConfig

func NewConfig(fname string) (conf *Config, err error)

NewConfig returns a new Config instance seeded by the file at fname.

type GeneralConfig

type GeneralConfig struct {
	StaffChan string
	SnoopChan string
	Prefix    string
	Debug     bool
	Workers   int
}

Struct GeneralConfig defines general configuration for Tetra.

type ServerConfig

type ServerConfig struct {
	Name  string
	Gecos string
	Sid   string
}

Struct ServerConfig defines the server information for Tetra.

type ServiceConfig

type ServiceConfig struct {
	Nick   string
	User   string
	Host   string
	Gecos  string
	Name   string
	Certfp string
}

Struct ServiceConfig defines the configuration for a service.

type StatsConfig

type StatsConfig struct {
	Host     string
	Database string
	Username string
	Password string
}

Struct StatsConfig defines the InfluxxDB information for Tetra.

type UplinkConfig

type UplinkConfig struct {
	Host     string
	Port     string
	Password string
	Ssl      bool
}

Struct UplinkConfig defines the configuration of Tetra's uplink.

Jump to

Keyboard shortcuts

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