keeper

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

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

func NewKeeper

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

func (Keeper) GetProvider

func (k Keeper) GetProvider(ctx sdk.Context, address hub.ProvAddress) (provider types.Provider, found bool)

GetProvider is for getting a provider with an address from the KVStore.

func (Keeper) GetProviders

func (k Keeper) GetProviders(ctx sdk.Context) (items types.Providers)

GetProviders is for getting the providers from the KVStore.

func (Keeper) HasProvider

func (k Keeper) HasProvider(ctx sdk.Context, address hub.ProvAddress) bool

HasProvider is for checking whether a provider with an address exists or not in the KVStore.

func (Keeper) IterateProviders

func (k Keeper) IterateProviders(ctx sdk.Context, fn func(index int, item types.Provider) (stop bool))

IterateProviders is for iterating over the providers to perform an action.

func (Keeper) Logger

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

func (Keeper) SetProvider

func (k Keeper) SetProvider(ctx sdk.Context, provider types.Provider)

SetProvider is for inserting a provider into the KVStore.

func (Keeper) Store

func (k Keeper) Store(ctx sdk.Context) sdk.KVStore

Jump to

Keyboard shortcuts

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