config

package
v0.0.0-...-68718cd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration time.Duration

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(data []byte) error

type WatcherConfig

type WatcherConfig struct {
	BBSAddress                string                        `json:"bbs_api_url"`
	BBSCACert                 string                        `json:"bbs_ca_cert"`
	BBSClientCert             string                        `json:"bbs_client_cert"`
	BBSClientKey              string                        `json:"bbs_client_key"`
	BBSClientSessionCacheSize int                           `json:"bbs_client_cache_size"`
	BBSMaxIdleConnsPerHost    int                           `json:"bbs_max_idle_conns_per_host"`
	CCBaseUrl                 string                        `json:"cc_base_url"`
	DebugServerConfig         debugserver.DebugServerConfig `json:"debug_server_config"`
	DropsondePort             int                           `json:"dropsonde_port"`
	LagerConfig               lagerflags.LagerConfig        `json:"lager_config"`
	LockRetryInterval         Duration                      `json:"lock_retry_interval"`
	LockTTL                   Duration                      `json:"lock_ttl"`
	MaxEventHandlingWorkers   int                           `json:"max_event_handling_workers"`
	CCClientCert              string                        `json:"cc_client_cert"`
	CCClientKey               string                        `json:"cc_client_key"`
	CCCACert                  string                        `json:"cc_ca_cert"`
	InstanceID                string                        `json:"instance_id"`

	locket.ClientLocketConfig
}

func DefaultWatcherConfig

func DefaultWatcherConfig() WatcherConfig

func NewWatcherConfig

func NewWatcherConfig(configPath string) (WatcherConfig, error)

Jump to

Keyboard shortcuts

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