repos

package
v0.0.0-...-71505b4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider is the repository provider.

func New

func New(db *gorm.DB) *Provider

New creates a new instance of Provider with the underlying DB instance.

func (*Provider) Commit

func (u *Provider) Commit() error

func (*Provider) GetAccount

func (u *Provider) GetAccount() account.Repo

GetAccount returns a new account repository.

func (*Provider) GetBaker

func (u *Provider) GetBaker() baker.Repo

GetBaker returns a new baker repository.

func (*Provider) GetBlock

func (u *Provider) GetBlock() block.Repo

GetBlock returns a new block repository.

func (*Provider) GetDoubleBaking

func (u *Provider) GetDoubleBaking() double_baking.Repo

func (*Provider) GetFutureBakingRight

func (u *Provider) GetFutureBakingRight() future_baking_rights.Repo

func (*Provider) GetOperation

func (u *Provider) GetOperation() operation.Repo

GetOperation returns a new operation repository.

func (*Provider) GetOperationCounter

func (u *Provider) GetOperationCounter() operation_counter.Repo

func (*Provider) GetOperationGroup

func (u *Provider) GetOperationGroup() operation_groups.Repo

GetOperationGroup returns a new operation group repository.

func (*Provider) GetSnapshots

func (u *Provider) GetSnapshots() snapshots.Repo

func (*Provider) RollbackUnlessCommitted

func (u *Provider) RollbackUnlessCommitted()

func (*Provider) Start

func (u *Provider) Start(ctx context.Context)

Directories

Path Synopsis
mock_account
Package mock_account is a generated GoMock package.
Package mock_account is a generated GoMock package.
mock_block
Package mock_block is a generated GoMock package.
Package mock_block is a generated GoMock package.
mock_operation
Package mock_operation is a generated GoMock package.
Package mock_operation is a generated GoMock package.
mock_operation_group
Package mock_operation_groups is a generated GoMock package.
Package mock_operation_groups is a generated GoMock package.

Jump to

Keyboard shortcuts

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