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.
Click to show internal directories.
Click to hide internal directories.