internal

package
v0.0.0-...-9a3b469 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log logadapter.Logger

Functions

func ConfigCallSection

func ConfigCallSection(name string, cfg *viper.Viper) error

func ConfigGetSections

func ConfigGetSections() []string

func ConfigRegister

func ConfigRegister(name string, parse func(*viper.Viper) error, validate func() ([]error, error)) error

func ConfigValidateSection

func ConfigValidateSection(name string) (warnings []error, err error)

func RandString

func RandString(n int) string

func StartLogger

func StartLogger()

Types

type GlobalStateT

type GlobalStateT struct {
	WorkerConfig              WorkerConfigT
	NatsConfig                NatsConfigT
	Conn                      *rns.ResticNatsClient
	ClientCommand             chan *nats.Msg
	ClientCommandSubscription *nats.Subscription
	Mx                        sync.Mutex
	T                         tomb.Tomb
}
var GlobalState GlobalStateT

type NatsConfigT

type NatsConfigT struct {
	MaxNatsConnections int
	NatsURL            *url.URL
	NatsNKey           string
	NatsCredfile       string
}

type WorkerConfigT

type WorkerConfigT struct {
	NumWorkers  int
	Connections uint
}

Directories

Path Synopsis
backend

Jump to

Keyboard shortcuts

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