Documentation
¶
Index ¶
- type Record
- type Repository
- func (v *Repository) DelByCallback(call func(name string) bool)
- func (v *Repository) DelDynamic(name string)
- func (v *Repository) DelFixed(name string)
- func (v *Repository) Down(_ ctx.Context) error
- func (v *Repository) Get(name string) *Record
- func (v *Repository) List(dyn bool, filter string, call func(name string, ip []string, ttl string))
- func (v *Repository) Reset()
- func (v *Repository) Set(name string, ip4, ip6 []string, ttl int64)
- func (v *Repository) Up(ctx ctx.Context) error
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 (*Record) AllIPsString ¶ added in v1.4.0
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) Get ¶
func (v *Repository) Get(name string) *Record
func (*Repository) Reset ¶ added in v1.4.0
func (v *Repository) Reset()
Click to show internal directories.
Click to hide internal directories.