keeper

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 10 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 new querier for instance clients.

Types

type Keeper

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

Keeper of the runner store

func NewKeeper

func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, instanceKeeper types.InstanceKeeper, ownershipKeeper types.OwnershipKeeper) Keeper

NewKeeper creates a runner keeper

func (Keeper) Create

func (k Keeper) Create(ctx sdk.Context, msg *types.MsgCreate) (*runner.Runner, error)

Create creates a new runner.

func (Keeper) Delete

func (k Keeper) Delete(ctx sdk.Context, msg *types.MsgDelete) error

Delete deletes a runner.

func (Keeper) Exists added in v0.21.0

func (k Keeper) Exists(ctx sdk.Context, hash hash.Hash) (bool, error)

Exists returns true if a specific set of data exists in the database, false otherwise

func (Keeper) Get

func (k Keeper) Get(ctx sdk.Context, hash hash.Hash) (*runner.Runner, error)

Get returns the runner that matches given hash.

func (*Keeper) Import added in v0.25.1

func (k *Keeper) Import(ctx sdk.Context, runners []*runner.Runner) error

Import imports a list of runners into the store.

func (Keeper) List

func (k Keeper) List(ctx sdk.Context) ([]*runner.Runner, error)

List returns all runners.

func (Keeper) Logger

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

Logger returns a module-specific logger.

Jump to

Keyboard shortcuts

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