cache

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record added in v1.3.0

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

func NewRecord added in v1.3.0

func NewRecord(ip4, ip6 []string, ttl int64) *Record

func (*Record) AllIPs added in v1.3.0

func (v *Record) AllIPs() []string

func (*Record) AllIPsString added in v1.4.0

func (v *Record) AllIPsString() string

func (*Record) GetIP4 added in v1.3.0

func (v *Record) GetIP4() []string

func (*Record) GetIP6 added in v1.3.0

func (v *Record) GetIP6() []string

func (*Record) GetTTL added in v1.3.0

func (v *Record) GetTTL() int64

func (*Record) HasIP4 added in v1.3.0

func (v *Record) HasIP4() bool

func (*Record) HasIP6 added in v1.3.0

func (v *Record) HasIP6() bool

func (*Record) IsStatic added in v1.3.0

func (v *Record) IsStatic() bool

type Repository

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

func New

func New() *Repository

func (*Repository) DelByCallback added in v1.4.0

func (v *Repository) DelByCallback(call func(name string) bool)

func (*Repository) DelDynamic added in v1.4.0

func (v *Repository) DelDynamic(name string)

func (*Repository) DelFixed added in v1.4.0

func (v *Repository) DelFixed(name string)

func (*Repository) Down added in v1.3.0

func (v *Repository) Down(_ ctx.Context) error

func (*Repository) Get

func (v *Repository) Get(name string) *Record

func (*Repository) List

func (v *Repository) List(dyn bool, filter string, call func(name string, ip []string, ttl string))

func (*Repository) Reset added in v1.4.0

func (v *Repository) Reset()

func (*Repository) Set

func (v *Repository) Set(name string, ip4, ip6 []string, ttl int64)

func (*Repository) Up added in v1.3.0

func (v *Repository) Up(ctx ctx.Context) error

Jump to

Keyboard shortcuts

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