Documentation ¶
Index ¶
Constants ¶
View Source
const ( BeskarMirrorConfigFile = "beskar-mirror.yaml" DefaultBeskarMirrorDataDir = "/tmp/beskar-mirror" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeskarMirrorConfig ¶
type BeskarMirrorConfig struct { Version string `yaml:"version"` Log log.Config `yaml:"log"` Addr string `yaml:"addr"` Gossip gossip.Config `yaml:"gossip"` Storage storage.Config `yaml:"storage"` Profiling bool `yaml:"profiling"` DataDir string `yaml:"datadir"` ConfigDirectory string `yaml:"-"` Sync config.SyncConfig `yaml:"sync"` }
func ParseBeskarMirrorConfig ¶
func ParseBeskarMirrorConfig(dir string) (*BeskarMirrorConfig, error)
func (BeskarMirrorConfig) ListenIP ¶
func (bc BeskarMirrorConfig) ListenIP() (string, error)
func (BeskarMirrorConfig) ListenPort ¶
func (bc BeskarMirrorConfig) ListenPort() (string, error)
type BeskarMirrorConfigV1 ¶
type BeskarMirrorConfigV1 BeskarMirrorConfig
Click to show internal directories.
Click to hide internal directories.