Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrServerDisabled error = errors.New("server is disabled")
ErrServerDisabled is returned when the server is disabled
View Source
var ErrServerRunning error = errors.New("server is already running")
ErrServerRunning is returned when the server is already running
Functions ¶
This section is empty.
Types ¶
type DNSServer ¶
type DNSServer struct {
// contains filtered or unexported fields
}
DNSServer is the implementation of the DNSServerInterface
type DNSServerInterface ¶
type DNSServerInterface interface { Start(context.Context) error Stop() TcpPort() int UdpPort() int }
DNSServerInterface is the interface for athe DNSServer
func NewDNSServer ¶
func NewDNSServer(p DNSServerParams) (DNSServerInterface, error)
NewDNSServer creates a new DNS proxy server
type DNSServerParams ¶
type DNSServerParams struct { BindAddr string Port int Logger hclog.Logger Client pbdns.DNSServiceClient Partition string Namespace string Token string }
DNSServerParams is the configuration for creating a new DNS server
Click to show internal directories.
Click to hide internal directories.