domain

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "domain"

Variables

This section is empty.

Functions

func NewDomain

func NewDomain(ctx context.Context, _ adapter.Core, logger log.Logger, tag string, args any) (adapter.PluginMatcher, error)

Types

type Args

type Args struct {
	File utils.Listable[string] `json:"file"`
	Rule utils.Listable[string] `json:"rule"`
}

type Domain

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

func (*Domain) APIHandler

func (d *Domain) APIHandler() chi.Router

func (*Domain) LoadRunningArgs

func (d *Domain) LoadRunningArgs(_ context.Context, _ any) (uint16, error)

func (*Domain) Match

func (d *Domain) Match(ctx context.Context, dnsCtx *adapter.DNSContext, _ uint16) (bool, error)

func (*Domain) Start

func (d *Domain) Start() error

func (*Domain) Tag

func (d *Domain) Tag() string

func (*Domain) Type

func (d *Domain) Type() string

Jump to

Keyboard shortcuts

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