keeper

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 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 service clients.

Types

type Keeper

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

Keeper of the service store

func NewKeeper

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

NewKeeper creates a service keeper

func (Keeper) Create

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

Create creates a new service.

func (Keeper) Exists

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) (*servicepb.Service, error)

Get returns the service that matches given hash.

func (Keeper) List

func (k Keeper) List(ctx sdk.Context) ([]*servicepb.Service, error)

List returns all services.

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