config

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Period:           60 * 5 * time.Second,
	RegistryFilePath: "./o365beat.registry.txt",
	APITimeout:       30 * time.Second,
	ContentMaxAge:    (7 * 24 * 60) * time.Minute,
}

DefaultConfig sets defaults for configuration options (tune as necessary)

Functions

This section is empty.

Types

type Config

type Config struct {
	Period           time.Duration `config:"period"`
	TenantDomain     string        `config:"tenant_domain"`
	ClientSecret     string        `config:"client_secret"`
	ClientID         string        `config:"client_id"`    // aka application id
	DirectoryID      string        `config:"directory_id"` // aka tenant id
	ContentTypes     []string      `config:"content_types"`
	RegistryFilePath string        `config:"registry_file_path"`
	APITimeout       time.Duration `config:"api_timeout"`
	ContentMaxAge    time.Duration `config:"content_max_age"`
}

Config represents o356beat configuration options

Jump to

Keyboard shortcuts

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