config

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigDir = "/etc/beskar"
	BeskarConfigFile = "beskar.yaml"
)
View Source
const (
	DefaultSyncTimeout        = time.Hour
	DefaultSyncMaxWorkerCount = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BeskarConfig

type BeskarConfig struct {
	Version   string                       `yaml:"version"`
	Profiling bool                         `yaml:"profiling"`
	Hostname  string                       `yaml:"hostname"`
	Cache     Cache                        `yaml:"cache"`
	Gossip    gossip.Config                `yaml:"gossip"`
	Registry  *configuration.Configuration `yaml:"registry"`
	Router    Router                       `yaml:"router"`
}

func ParseBeskarConfig

func ParseBeskarConfig(dir string) (*BeskarConfig, error)

type BeskarConfigV1

type BeskarConfigV1 BeskarConfig

type Cache

type Cache struct {
	Addr string `yaml:"addr"`
	Size uint32 `yaml:"size"`
}

type Router added in v0.0.21

type Router struct {
	BodyLimit int64 `yaml:"bodylimit"`
}

type SyncConfig added in v0.0.27

type SyncConfig struct {
	Timeout        time.Duration `yaml:"timeout"`
	MaxWorkerCount int           `yaml:"max_worker_count"`
}

func (*SyncConfig) GetMaxWorkerCount added in v0.0.27

func (sc *SyncConfig) GetMaxWorkerCount() int

func (*SyncConfig) GetTimeout added in v0.0.27

func (sc *SyncConfig) GetTimeout() time.Duration

Jump to

Keyboard shortcuts

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