endpoint

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Bind(ctx context.Context, longTerm view.Identity, ephemeral view.Identity) error
	AddResolver(name string, domain string, addresses map[string]string, aliases []string, id []byte) (view.Identity, error)
}

type ConfigService

type ConfigService interface {
	GetString(key string) string
	IsSet(s string) bool
	UnmarshalKey(s string, i interface{}) error
	TranslatePath(path string) string
}

type Identity

type Identity struct {
	Path string `yaml:"path"`
}

type IdentityService

type IdentityService interface {
	DefaultIdentity() view.Identity
}

type ResolversLoader

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

func NewResolversLoader

func NewResolversLoader(config ConfigService, backend Backend, is IdentityService) (*ResolversLoader, error)

NewResolversLoader returns a new instance of ResolversLoader that loads resolver from the configuration.

func (*ResolversLoader) LoadResolvers

func (r *ResolversLoader) LoadResolvers() error

Jump to

Keyboard shortcuts

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