config

package
v0.0.0-...-07998b0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Period: 1 * time.Second,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Period  time.Duration `config:"period"`
	Servers []Server      `config:"servers"`
}

type Custom

type Custom struct {
	Resource string `config:"resource"`
	Class    string `config:"class"`
	Key      string `config:"key"`
	Query    string `config:"query"`
}

type Server

type Server struct {
	Code       string `config:"code"`
	Connection struct {
		URL               string `config:"url"`
		Username          string `config:"username"`
		Password          string `config:"password"`
		UserAgent         string `config:"user_agent"`
		UserAgentPassword string `config:"user_agent_password"`
		RetsVersion       string `config:"rets_version"`
	} `config:"connection"`
	Status []string `config:"status"`
	Type   []string `config:"type"`
	Custom []Custom `config:"custom"`
}

Jump to

Keyboard shortcuts

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