config

package
v7.4.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Host: "localhost",
	Port: 5665,
}

DefaultConfig values

Functions

This section is empty.

Types

type Config

type Config struct {
	Host         string             `config:"host"`
	Port         int                `config:"port"`
	User         string             `config:"user"`
	Password     string             `config:"password"`
	SSL          SSL                `config:"ssl"`
	Eventstream  EventstreamConfig  `config:"eventstream"`
	Statuspoller StatuspollerConfig `config:"statuspoller"`
}

Config options

type EventstreamConfig

type EventstreamConfig struct {
	Types         []string      `config:"types"`
	Filter        string        `config:"filter"`
	RetryInterval time.Duration `config:"retry_interval"`
}

EventstreamConfig optoins

type SSL

type SSL struct {
	Verify                 bool     `config:"verify"`
	CertificateAuthorities []string `config:"certificate_authorities"`
}

SSL options

type StatuspollerConfig

type StatuspollerConfig struct {
	Interval time.Duration `config:"interval"`
}

StatuspollerConfig options

Jump to

Keyboard shortcuts

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