ip

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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "ip"

Variables

This section is empty.

Functions

func NewIP

func NewIP(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 IP

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

func (*IP) APIHandler

func (i *IP) APIHandler() chi.Router

func (*IP) LoadRunningArgs

func (i *IP) LoadRunningArgs(_ context.Context, _ any) (uint16, error)

func (*IP) Match

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

func (*IP) Start

func (i *IP) Start() error

func (*IP) Tag

func (i *IP) Tag() string

func (*IP) Type

func (i *IP) Type() string

Jump to

Keyboard shortcuts

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