boltdb

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(cpath string) storage.Service

NewService returns a new storage.Service for boltdb

Types

type TypeItem added in v0.2.5

type TypeItem struct {
	ID       int64
	Type     string
	Features string
}

TypeItem holds the features for a particular type of client

func (TypeItem) ToBytes added in v0.2.5

func (ti TypeItem) ToBytes() []byte

ToBytes encodes everything to be stored in boltdb

type UserItem added in v0.2.5

type UserItem struct {
	ID       int64
	Login    string
	Password string
}

UserItem holds the features for a particular login

func (UserItem) ToBytes added in v0.2.5

func (ui UserItem) ToBytes() []byte

ToBytes encodes everything to be stored in boltdb

Jump to

Keyboard shortcuts

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