boltdb

package
v0.0.0-...-11ecd60 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BUCKETNAME          = "userRoutes"
	ErrBucketNotCreated = errors.New("Error Bucket not created")
	ErrBucketNotFound   = errors.New("Error Bucket not found")
	ErrExists           = errors.New("ERROR RECORD EXISTS")
)

Functions

func AddRecord

func AddRecord(key string, value RecordValue) error

func DeleteRecord

func DeleteRecord(key string) error

func Init

func Init(Path string) error

Types

type RecordValue

type RecordValue struct {
	RecordName    string
	DestinationIP string
	ExternalPort  string
	InternalPort  string
}

func ListRecords

func ListRecords(username string) (values []RecordValue, err error)

Jump to

Keyboard shortcuts

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