server

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Address string
	Port    int
	// contains filtered or unexported fields
}

type ResolverConfig

type ResolverConfig struct {
	Address string
	Port    int
	// contains filtered or unexported fields
}

type Server

type Server struct {
	*dns.Server
	APIConf      APIConfig
	ResolverConf ResolverConfig
	Persister    persist.Persist
	Logger       *log.Logger

	api.UnimplementedNameserverServer
}

func (*Server) CreateRecord

func (*Server) DeleteRecord

func (*Server) GetRecord

func (*Server) Init

func (s *Server) Init() error

func (*Server) ServeDNS added in v0.0.5

func (s *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

ServeDNS implements github.com/miekg/dns Handler interface

func (*Server) Start

func (s *Server) Start() error

func (Server) Status

Jump to

Keyboard shortcuts

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