config

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: AGPL-3.0 Imports: 7 Imported by: 2

Documentation

Overview

Package config implements the configuration for catshadow.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientLogging      *config.Logging
	Logging            *config.Logging
	UpstreamProxy      *config.UpstreamProxy
	Debug              *config.Debug
	NonvotingAuthority *config.NonvotingAuthority
	VotingAuthority    *config.VotingAuthority
	Panda              *config.Panda
	Reunion            *config.Reunion
}

Config is the top level catshadow configuration.

func Load

func Load(b []byte) (*Config, error)

Load parses and validates the provided buffer b as a config file body and returns the Config.

func LoadFile

func LoadFile(f string) (*Config, error)

LoadFile loads, parses, and validates the provided file and returns the Config.

func (*Config) ClientConfig

func (c *Config) ClientConfig() (*config.Config, error)

func (*Config) InitLogBackend

func (c *Config) InitLogBackend() (*log.Backend, error)

Jump to

Keyboard shortcuts

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