dns

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Discovery api.ServiceDiscovery
	Port      uint16
	Domain    string
}

Config represents the DNS server configurations.

type Server

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

Server represent a DNS server. has config field for port,domain,and client discovery, and the DNS server itself

func NewServer

func NewServer(config Config) (*Server, error)

NewServer creates a new instance of a DNS server with the given configurations

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts the DNS server

func (*Server) Shutdown

func (s *Server) Shutdown() error

Shutdown stops the DNS server

Jump to

Keyboard shortcuts

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