Documentation
¶
Index ¶
Constants ¶
View Source
const (
DEFAULT_STATS_PORT = ":9090"
)
Variables ¶
View Source
var ( DEFAULT_LUA_PATH = os.Getenv("GOPATH") + "/src/github.com/barracudanetworks/GoWorker/lua" WRONG_CONFIG_TYPE = errors.New("config: wrong config type") LUA_PATH = DEFAULT_LUA_PATH )
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
ProviderConfigs []ConfigPair
WorkerConfigs []ConfigPair
FailureHanldlerConfigs []ConfigPair
ManagerToManager string `json:"manager_to_manager_port"`
StatsPort string `json:"stats_port"`
LuaPath string `json:"lua_path"`
RawProviders ConfigBlock `json:"providers"`
RawWorkers ConfigBlock `json:"workers"`
RawFailureHandler ConfigBlock `json:"failure_handler"`
}
AppConfig contains all of the information needed to configure the app
func DefaultAppConfig ¶
func DefaultAppConfig() *AppConfig
defaultAppConfig returns a app config with defaults params
func LoadAppConfigFromFile ¶
LoadAppConfigFromFile loads configuration needed for the initilization of the manager
type Config ¶
type Config json.RawMessage
Holds generic config information
type ConfigBlock ¶
type ConfigBlock []map[string]json.RawMessage
type ConfigPair ¶
Click to show internal directories.
Click to hide internal directories.