adguard

package
v0.0.0-...-5f3e536 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRequestFailed = errors.New("request failed")
)

Functions

This section is empty.

Types

type AdguardProvider

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

func (*AdguardProvider) Create

func (p *AdguardProvider) Create(ctx context.Context, payload *provider.DnsProviderPayload) (err error)

func (*AdguardProvider) Delete

func (p *AdguardProvider) Delete(ctx context.Context, payload *provider.DnsProviderPayload) (err error)

func (*AdguardProvider) List

func (p *AdguardProvider) List(ctx context.Context) (records []AdguardRecord, err error)

func (*AdguardProvider) Update

func (p *AdguardProvider) Update(ctx context.Context, payload *provider.DnsProviderPayload) (err error)

type AdguardRecord

type AdguardRecord struct {
	Domain string `json:"domain"`
	Answer string `json:"answer"`
}

Jump to

Keyboard shortcuts

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