processsdk

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend added in v0.18.0

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

Backend is the service backend.

func NewBackend added in v0.18.0

func NewBackend(appFactory *cosmos.AppFactory, ownership *ownershipsdk.Backend, instance *instancesdk.Backend) *Backend

NewBackend returns the backend of the service sdk.

func (*Backend) Create added in v0.18.0

func (s *Backend) Create(req cosmostypes.Request, msg *msgCreateProcess) (*process.Process, error)

Create creates a new process.

func (*Backend) Delete added in v0.18.0

func (s *Backend) Delete(req cosmostypes.Request, msg *msgDeleteProcess) error

Delete deletes a process and realated ownership.

func (*Backend) Get added in v0.18.0

func (s *Backend) Get(req cosmostypes.Request, hash hash.Hash) (*process.Process, error)

Get returns the service that matches given hash.

func (*Backend) List added in v0.18.0

func (s *Backend) 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