lambda

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(handler Handler)

noinspection GoUnusedExportedFunction

func StartHandler

func StartHandler(handle Handle)

Types

type Function

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

func (*Function) Invoke

func (fn *Function) Invoke(req *messages.InvokeRequest, response *messages.InvokeResponse) error

func (*Function) Ping

func (fn *Function) Ping(req *messages.PingRequest, response *messages.PingResponse) error

type Handle

type Handle interface {
	Invoke(ctx context.Context, payload json.RawMessage) (interface{}, error)
}

type Handler

type Handler = func(ctx context.Context, payload json.RawMessage) (interface{}, error)

Jump to

Keyboard shortcuts

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