dnsserver

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Module = application.Modules{
		New,
	}
	Config = application.Modules{
		&ConfigTCP{},
	}
)

Functions

This section is empty.

Types

type Cert added in v1.3.0

type Cert struct {
	Public  string `yaml:"public"`
	Private string `yaml:"private"`
}

type ConfigTCP

type ConfigTCP struct {
	Srv Srv `yaml:"srv"`
	DoT DoT `yaml:"dot"`
}

type DoT added in v1.3.0

type DoT struct {
	Enable bool   `yaml:"enable"`
	Addr   string `yaml:"addr"`
	Cert   Cert   `yaml:"cert"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(c *ConfigTCP, r *rules.Repository) *Server

func (*Server) Down

func (v *Server) Down(_ ctx.Context) (err error)

func (*Server) Up

func (v *Server) Up(ctx ctx.Context) error

type Srv

type Srv struct {
	Enable bool   `yaml:"enable"`
	Addr   string `yaml:"addr"`
}

Jump to

Keyboard shortcuts

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