dns

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: GPL-3.0 Imports: 15 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 {
	// UpdateSpec sends an updated spec to the DNS server.
	UpdateSpec(spec.SpecCensored) error
}

type Config

type Config struct {
	Parents []Parent
	Address string
}

type DirectClient

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

func NewDirectClient

func NewDirectClient(s *Server) *DirectClient

func (*DirectClient) UpdateSpec

func (d *DirectClient) UpdateSpec(spec spec.SpecCensored) error

UpdateSpec sends an updated spec to the DNS server.

type Parent

type Parent struct {
	Suffix  string
	Network string
	Device  string
}

type RPCClient

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

RPCClient is the client for RPCServer.

func NewRPCClient

func NewRPCClient(c *rpc.Client) *RPCClient

func (*RPCClient) Close

func (r *RPCClient) Close() error

Close calls the underlying rpc.Client.Close.

func (*RPCClient) UpdateSpec

func (r *RPCClient) UpdateSpec(spec spec.SpecCensored) error

UpdateSpec sends an updated spec to the DNS server.

type RPCServer

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

func (*RPCServer) UpdateSpec

func (r *RPCServer) UpdateSpec(spec spec.SpecCensored, alwaysNil *bool) error

type Server

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

func NewServer

func NewServer(parents []Parent) (*Server, error)

func (*Server) ListenDNS

func (s *Server) ListenDNS(addr string) error

func (*Server) ListenRPC

func (s *Server) ListenRPC(socketPath string, socketMode int) error

func (*Server) ListenRPCListener

func (s *Server) ListenRPCListener(lis net.Listener)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳