bbolt

package
v0.0.0-...-947ddfb Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(filepath string, mode os.FileMode) (*bolt.DB, error)

Types

type RoutesStore

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

func NewRoutesStore

func NewRoutesStore(db *bolt.DB, bucketName string) *RoutesStore

func (*RoutesStore) Delete

func (rs *RoutesStore) Delete(key string) error

func (*RoutesStore) GetAll

func (rs *RoutesStore) GetAll() ([]*models.Route, error)

func (*RoutesStore) GetByKey

func (rs *RoutesStore) GetByKey(key string) (*models.Route, error)

func (*RoutesStore) Health

func (rs *RoutesStore) Health() error

func (*RoutesStore) Migrate

func (rs *RoutesStore) Migrate() error

func (*RoutesStore) Name

func (rs *RoutesStore) Name() string

func (*RoutesStore) Put

func (rs *RoutesStore) Put(route *models.Route) error

type Store

type Store interface{}

Jump to

Keyboard shortcuts

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