dnscontroller

package
v0.0.0-...-8a215a2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SocketFileEnvironmentManager = socket.NewFileEnvironmentManager(
	"/run/zeus/dns",
	"dns.sock",
	0666,
)

Functions

This section is empty.

Types

type Client

type Client struct {
	DNSControllerClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Close

func (self *Client) Close() error

type Controller

type Controller struct {
	UnimplementedDNSControllerServer
	// contains filtered or unexported fields
}

func New

func New(
	dnsPlugin *ZeusDns,
	networkHash string,
) (*Controller, error)

func (*Controller) Run

func (self *Controller) Run() error

func (*Controller) SetDNSEntry

func (c *Controller) SetDNSEntry(
	ctx context.Context,
	req *DNSSetRequest,
) (*DNSSetResponse, error)

type ZeusDns

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

func (*ZeusDns) Name

func (z *ZeusDns) Name() string

func (*ZeusDns) ServeDNS

func (z *ZeusDns) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)

Jump to

Keyboard shortcuts

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