service

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSService added in v0.5.0

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

DNSService is a DNS service that provides recursive and authoritative DNS resolution.

func DNS

func DNS(enableNAT64 bool, nat64Prefix netip.Prefix, publicUpstreamServers []string) *DNSService

DNS returns a new DNS service.

func (*DNSService) Serve added in v0.5.0

func (s *DNSService) Serve(ctx context.Context, net network.Network) error

type RouterService added in v0.5.0

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

RouterService is a service that forwards packets from the source network to the destination network and vice versa.

func Router added in v0.5.0

func Router(dstNet network.Network, enableNAT64 bool, nat64Prefix netip.Prefix) *RouterService

Router returns a service that forwards packets from the source network to the destination network and vice versa.

func (*RouterService) Serve added in v0.5.0

func (s *RouterService) Serve(ctx context.Context, net network.Network) error

type Service

type Service interface {
	Serve(ctx context.Context, net network.Network) error
}

Jump to

Keyboard shortcuts

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