data

package
v0.0.0-...-af775b7 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

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 implementation.

func (*BoltClient) Check

func (bc *BoltClient) Check() bool

Check is naive healthcheck, just makes sure the DB connection has been initialized.

func (*BoltClient) OpenDb

func (bc *BoltClient) OpenDb() error

OpenDb opens a bolt connection.

func (*BoltClient) QueryAccount

func (bc *BoltClient) QueryAccount(ctx context.Context, accountID string) (model.Account, error)

QueryAccount query account by account ID from bolt db.

func (*BoltClient) Seed

func (bc *BoltClient) Seed()

Seed starts seeding accounts

type IData

type IData interface {
	OpenDb() error
	QueryAccount(ctx context.Context, accountID string) (model.Account, error)
	Seed()
	Check() bool
}

IData is interface for accessing storage.

Jump to

Keyboard shortcuts

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