Back to godoc.org
github.com/katzenpost/catshadow/config

package config

v0.0.9
Latest Go to latest
Published: May 4, 2020 | License: AGPL-3.0 | Module: github.com/katzenpost/catshadow

Overview

Package config implements the configuration for catshadow.

Index

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
}

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)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier