catshadow: github.com/katzenpost/catshadow/config Index | Files

package config

import "github.com/katzenpost/catshadow/config"

Package config implements the configuration for catshadow.

Index

Package Files

config.go

type Config Uses

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 Uses

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 Uses

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

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

func (*Config) ClientConfig Uses

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

func (*Config) InitLogBackend Uses

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

Package config imports 7 packages (graph) and is imported by 1 packages. Updated 2019-10-21. Refresh now. Tools for package owners.