repos

package
v0.0.0-...-80b2b3e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 27 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) GetAssets

func (u *Provider) GetAssets() assets.Repo

func (*Provider) GetBaker

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

GetBaker returns a new baker repository.

func (*Provider) GetBaking

func (u *Provider) GetBaking() baking.Repo

func (*Provider) GetBlock

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

GetBlock returns a new block repository.

func (*Provider) GetChart

func (u *Provider) GetChart() chart.Repo

func (*Provider) GetDailyStats

func (u *Provider) GetDailyStats() daily_stats.Repo

func (*Provider) GetDoubleBaking

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

func (*Provider) GetDoubleEndorsement

func (u *Provider) GetDoubleEndorsement() double_endorsement.Repo

func (*Provider) GetEndorsing

func (u *Provider) GetEndorsing() endorsing.Repo

func (*Provider) GetFutureBakingRight

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

func (*Provider) GetFutureEndorsementRight

func (u *Provider) GetFutureEndorsementRight() future_endorsement_rights.Repo

func (*Provider) GetNFT

func (u *Provider) GetNFT() nft.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) GetRolls

func (u *Provider) GetRolls() rolls.Repo

func (*Provider) GetSnapshots

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

func (*Provider) GetStorage

func (u *Provider) GetStorage() storage.Repo

func (*Provider) GetThirdPartyBakers

func (u *Provider) GetThirdPartyBakers() thirdparty_bakers.Repo

func (*Provider) GetUserProfile

func (u *Provider) GetUserProfile() user_profile.Repo

func (*Provider) GetVotingPeriod

func (u *Provider) GetVotingPeriod() voting_periods.Repo

func (*Provider) Health

func (u *Provider) Health() (err error)

Heath returns a new health check of repository provider.

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