bbolt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

func NewRepo

func NewRepo(file string) *Repo

func (*Repo) DeleteEntry

func (r *Repo) DeleteEntry(id uint64) error

func (*Repo) GetAllEntries

func (r *Repo) GetAllEntries() (map[uint64]*entry.Entry, error)

GetAllEntries returns all entries map, key format is "ip/user"

func (*Repo) GetEntry

func (r *Repo) GetEntry(id uint64) (e *entry.Entry, err error)

func (*Repo) GetMetadata

func (r *Repo) GetMetadata(key []byte) ([]byte, error)

func (*Repo) Init

func (r *Repo) Init() error

func (*Repo) SetMetadata

func (r *Repo) SetMetadata(key []byte, value []byte) error

func (*Repo) TouchEntry

func (r *Repo) TouchEntry(e *entry.Entry) error

Jump to

Keyboard shortcuts

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