db

package
v0.0.0-...-4c5efe1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(kv cluster.KV) *DB

func (*DB) Add

func (db *DB) Add(key string) error

func (*DB) Delete

func (db *DB) Delete(key string) error

func (*DB) DeleteLB

func (db *DB) DeleteLB(name string) error

func (*DB) Exists

func (db *DB) Exists(key string) (bool, error)

func (*DB) GetCIDR

func (db *DB) GetCIDR(name string) (cidr string, err error)

func (*DB) GetDeletedIPs

func (db *DB) GetDeletedIPs() (ips []string, err error)

func (*DB) GetIPs

func (db *DB) GetIPs() (ips []string, err error)

func (*DB) GetLB

func (db *DB) GetLB(name string) ([]byte, error)

func (*DB) GetLBs

func (db *DB) GetLBs(cl string) (lbs map[string][]byte, err error)

func (*DB) LBExists

func (db *DB) LBExists(name string) bool

func (*DB) SetLB

func (db *DB) SetLB(name string, lb []byte) error

Jump to

Keyboard shortcuts

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