server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigPath = "/etc/apexdns/Apexfile"
)

Variables

This section is empty.

Functions

func GetEndpoint

func GetEndpoint(name string) (types.EndpointInitializer, bool)

func GetPlugin

func GetPlugin(name string) (types.PluginInitializer, bool)

func RegisterEndpoint

func RegisterEndpoint(edp types.EndpointInitializer) error

func RegisterPlugin

func RegisterPlugin(plug types.PluginInitializer) error

Types

type Engine

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

func NewEngine

func NewEngine(logger *logrus.Entry, tokens map[string][]caddyfile.Token) (*Engine, error)

func (*Engine) Handle

func (e *Engine) Handle(ctx *types.Context)

type Options

type Options struct {
	ConfigPath string
}

func NewDefaultOptions

func NewDefaultOptions() *Options

func (*Options) AddFlags

func (o *Options) AddFlags(flagSet *pflag.FlagSet)

type Server

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

func New

func New(opts Options) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Run

func (s *Server) Run()

Jump to

Keyboard shortcuts

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