keeper

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) 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.Codec, 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) uint16

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) 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 uint16)

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