Documentation ¶
Overview ¶
Package config contains a Config struct for kites.
Index ¶
Constants ¶
View Source
const ( WebSocket = iota XHRPolling )
Variables ¶
View Source
var DefaultConfig = &Config{ Username: "unknown", Environment: "unknown", Region: "unknown", IP: "0.0.0.0", Port: 0, Transport: WebSocket, }
DefaultConfig contains the default settings.
View Source
var Transports = map[string]Transport{ "WebSocket": WebSocket, "XHRPolling": XHRPolling, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Options for Kite Username string Environment string Region string Id string KiteKey string DisableAuthentication bool DisableConcurrency bool Transport Transport // Options for Server IP string Port int KontrolURL string KontrolKey string KontrolUser string }
Options is passed to kite.New when creating new instance.
func (*Config) ReadEnvironmentVariables ¶
func (*Config) ReadKiteKey ¶
ReadKiteKey parsed the user's kite key and returns a new Config.
Click to show internal directories.
Click to hide internal directories.