Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
func New ¶
func New(addr string, entityClient *entityserver_v1alpha.EntityAccessClient, log *slog.Logger) (*Server, error)
New creates a new DNS forwarding server
func NewTestServer ¶ added in v0.10.0
func NewTestServer() *Server
NewTestServer creates a minimal Server for testing without binding to a port.
func (*Server) AddSandboxMapping ¶ added in v0.10.0
AddSandboxMapping registers a sandbox's IP address for DNS resolution.
func (*Server) ListenAndServe ¶
ListenAndServe starts the DNS server
func (*Server) LookupSandboxByIP ¶ added in v0.10.0
LookupSandboxByIP returns the sandbox entity ID and app name for a given IP. On a cache miss, falls back to an entity store lookup to handle watcher lag.
Click to show internal directories.
Click to hide internal directories.