v1

package
v0.0.0-...-6cb77cc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInvokerAPIServer

func NewInvokerAPIServer(h InvokerAPIServerHandle) apiV1.InvokerServer

NewInvokerAPIServer creates API server for Invoker service.

Types

type InvokeRequest

type InvokeRequest = apiV1.InvokeRequest

InvokeRequest is a request to invoke an activity.

type InvokeResponse

type InvokeResponse = apiV1.InvokeResponse

InvokeResponse is a response of invocation.

type InvokerAPIServerHandle

type InvokerAPIServerHandle interface {

	// ctx, address, username, actNAme, arg
	InvokeRequested(context.Context, *net.TCPAddr, string, string, string) (*InvokeResponse, error)

	// ctx, username, actName, actDirPath
	AddRequested(context.Context, string, string, string) error

	// ctx, username
	ListRequested(context.Context, string) ([]activity.Activity, error)

	// ctx, username, actName
	RemoveRequested(context.Context, string, string) error
}

InvokerAPIServerHandle handles server events.

Jump to

Keyboard shortcuts

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