config

package
v0.0.0-...-a288e68 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DefaultDelayBackgroundJob = "15s"
	DefaultConnectRetrySleep  = "5s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DB                 *db.Config
	MongoDB            *mongodb.Config
	Metrics            *metrics.Config
	NodeType           NodeType
	ServiceName        string
	DelayBackgroundJob time.Duration
	ConnectRetrySleep  time.Duration
	Verbose            bool
}

type NodeType

type NodeType string
const (
	NodeTypeMongod NodeType = "mongod"
	NodeTypeMongos NodeType = "mongos"
)

func (NodeType) String

func (t NodeType) String() string

Jump to

Keyboard shortcuts

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