bolt

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltStore

type BoltStore struct {
	C *bolt.DB

	BoltStoreOptions
	// contains filtered or unexported fields
}

func NewBoltStore

func NewBoltStore(options *BoltStoreOptions) *BoltStore

func (*BoltStore) Close

func (s *BoltStore) Close() error

func (*BoltStore) DeleteAccount

func (s *BoltStore) DeleteAccount(uuid string) (int, error)

func (*BoltStore) GetAccountByEmail

func (s *BoltStore) GetAccountByEmail(email string) (*account.Account, error)

func (*BoltStore) LoadAccount

func (s *BoltStore) LoadAccount(uuid string) (*account.Account, error)

func (*BoltStore) LoadAllAccounts

func (s *BoltStore) LoadAllAccounts() ([]*account.Account, error)

func (*BoltStore) SaveAccount

func (s *BoltStore) SaveAccount(acc *account.Account) (*account.Account, error)

func (*BoltStore) Status

func (s *BoltStore) Status() (int, string)

type BoltStoreOptions

type BoltStoreOptions struct {
	Dbpath  string
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

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