command

package
v0.0.0-...-7b61fee Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandClient

type CommandClient interface {
	Get(id string, cID string, ctx context.Context) (string, error)
	Put(id string, cID string, body string, ctx context.Context) (string, error)
}

CommandClient : client to interact with core command

func NewCommandClient

func NewCommandClient(url string) CommandClient

NewCommandClient : Create an instance of CommandClient

type CommandRestClient

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

func (*CommandRestClient) Get

func (cc *CommandRestClient) Get(id string, cID string, ctx context.Context) (string, error)

Get : issue GET command

func (*CommandRestClient) Put

func (cc *CommandRestClient) Put(id string, cID string, body string, ctx context.Context) (string, error)

Put : Issue PUT command

Jump to

Keyboard shortcuts

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