Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltClient ¶
type BoltClient struct {
// contains filtered or unexported fields
}
BoltClient is the real implementation
func (*BoltClient) Check ¶
func (bc *BoltClient) Check() bool
Check is a naive healthcheck, just makes sure the DB connection has been initialized.
func (*BoltClient) OpenBoltDb ¶
func (bc *BoltClient) OpenBoltDb()
OpenBoltDb tries to open a hard-coded make-believe database.
func (*BoltClient) QueryAccount ¶
QueryAccount lets us query an account object.
func (*BoltClient) Seed ¶
func (bc *BoltClient) Seed()
Seed can be used to seed some sample accounts
type IBoltClient ¶
type IBoltClient interface { OpenBoltDb() QueryAccount(ctx context.Context, accountID string) (model.Account, error) Seed() Check() bool }
IBoltClient defines a simple little interface for interacting with a BoltDB
type MockBoltClient ¶
MockBoltClient is a mock implementation of a datastore client for testing purposes
func (*MockBoltClient) QueryAccount ¶
QueryAccount mock
Click to show internal directories.
Click to hide internal directories.