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 process store

func NewKeeper

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

NewKeeper creates a process keeper

func (Keeper) Create

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

Create creates a new process.

func (Keeper) Delete

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

Delete deletes a process.

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) (*processpb.Process, error)

Get returns the process that matches given hash.

func (*Keeper) Import added in v0.25.1

func (k *Keeper) Import(ctx sdk.Context, processes []*process.Process) error

Import imports a list of processes into the store.

func (Keeper) List

func (k Keeper) List(ctx sdk.Context) ([]*processpb.Process, error)

List returns all processes.

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