keeper

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 14 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl added in v1.2.0

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the record MsgServer interface for the provided Keeper.

func NewQuerier

func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier

NewQuerier creates a querier for record REST endpoints

Types

type Keeper

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

Keeper of the record store

func NewKeeper

func NewKeeper(cdc codec.Marshaler, key sdk.StoreKey) Keeper

NewKeeper returns a record keeper

func (Keeper) AddRecord

func (k Keeper) AddRecord(ctx sdk.Context, record types.Record) []byte

AddRecord add a record

func (Keeper) GetIntraTxCounter

func (k Keeper) GetIntraTxCounter(ctx sdk.Context) uint32

GetIntraTxCounter gets the current in-block request operation counter

func (Keeper) GetRecord

func (k Keeper) GetRecord(ctx sdk.Context, recordID []byte) (record types.Record, found bool)

GetRecord retrieves the record by specified recordID

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) Record

func (Keeper) RecordsIterator

func (k Keeper) RecordsIterator(ctx sdk.Context) sdk.Iterator

RecordsIterator gets all records

func (Keeper) SetIntraTxCounter

func (k Keeper) SetIntraTxCounter(ctx sdk.Context, counter uint32)

SetIntraTxCounter sets the current in-block request counter

Jump to

Keyboard shortcuts

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