channel

package
v0.6.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppChannel

type AppChannel interface {
	GetBaseAddress() string
	InvokeMethod(req *InvokeRequest) (*InvokeResponse, error)
}

AppChannel is an abstraction over communications with user code

type InvokeRequest

type InvokeRequest struct {
	Method   string            `json:"method"`
	Payload  []byte            `json:"payload"`
	Metadata map[string]string `json:"metadata"`
}

InvokeRequest is the request object for invoking a user code method

type InvokeResponse

type InvokeResponse struct {
	Data     []byte            `json:"data"`
	Metadata map[string]string `json:"metadata"`
}

InvokeResponse is the response object from invoking user code

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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