processsdk

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "process"

ModuleName is the name of this module.

Variables

This section is empty.

Functions

func NewModule added in v0.18.3

func NewModule(k *Keeper) module.AppModule

NewModule returns the module of this sdk.

Types

type Keeper added in v0.18.3

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

Keeper is the service keeper.

func NewKeeper added in v0.18.3

func NewKeeper(storeKey *cosmostypes.KVStoreKey, ownershipKeeper *ownershipsdk.Keeper, instanceKeeper *instancesdk.Keeper) *Keeper

NewKeeper returns the keeper of the service sdk.

func (*Keeper) Create added in v0.18.3

func (k *Keeper) Create(req cosmostypes.Request, msg *msgCreateProcess) (*process.Process, error)

Create creates a new process.

func (*Keeper) Delete added in v0.18.3

func (k *Keeper) Delete(req cosmostypes.Request, msg *msgDeleteProcess) error

Delete deletes a process and realated ownership.

func (*Keeper) Get added in v0.18.3

func (k *Keeper) Get(req cosmostypes.Request, hash hash.Hash) (*process.Process, error)

Get returns the service that matches given hash.

func (*Keeper) List added in v0.18.3

func (k *Keeper) List(req cosmostypes.Request) ([]*process.Process, error)

List returns all services.

type SDK added in v0.18.0

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

SDK is the process sdk.

func New

func New(client *cosmos.Client) *SDK

New creates a new Process SDK with given options.

func (*SDK) Create added in v0.18.0

func (s *SDK) Create(req *api.CreateProcessRequest) (*process.Process, error)

Create creates a new process.

func (*SDK) Delete added in v0.18.0

func (s *SDK) Delete(req *api.DeleteProcessRequest) error

Delete deletes the process by hash.

func (*SDK) Get added in v0.18.0

func (s *SDK) Get(hash hash.Hash) (*process.Process, error)

Get returns the process that matches given hash.

func (*SDK) List added in v0.18.0

func (s *SDK) List() ([]*process.Process, error)

List returns all processes.

Jump to

Keyboard shortcuts

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