pkg

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	*gin.Engine
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(domainFilter endpoint.DomainFilter, storage Storage, allowWildcards bool) *Provider

type Storage

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

func NewStorage

func NewStorage(name, namespace, configPath, server string) Storage

func (Storage) Load

func (s Storage) Load(ctx context.Context) ([]*endpoint.Endpoint, error)

func (Storage) Save

func (s Storage) Save(ctx context.Context, newRecords []*endpoint.Endpoint) error

Jump to

Keyboard shortcuts

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