config

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigDir = "/etc/beskar"
	BeskarConfigFile = "beskar.yaml"
)

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"`
}

Jump to

Keyboard shortcuts

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