client

package
v0.0.0-...-fa16b3f Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ListenAndServe() error
}

Client ...

func NewClient

func NewClient(cfg Config) (Client, error)

NewClient makes a new client

type Config

type Config struct {
	ListenAddr string     `yaml:"listenaddr"`
	ListenPort int        `yaml:"listenport"`
	DOH        *DOHConfig `yaml:"doh"`
}

Config ...

func LoadConfig

func LoadConfig(buf []byte) (Config, error)

LoadConfig loads a config from a byte buffer

type DOHConfig

type DOHConfig struct {
	URL    string `yaml:"url"`
	CAFile string `yaml:"cafile"`
}

DOHConfig ...

Jump to

Keyboard shortcuts

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