Documentation ¶
Overview ¶
Package invoke provides functions for invoking lambda functions. It collects logs from lambda functions, as well as result.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
func Node ¶
func Node(endpoint, authToken string, logSink LogSinkCallback) *HTTPClient
Node creates HTTPClient for calling node lambda function through api gateway
func Stage ¶
func Stage(endpoint string, excludeLogs bool, cb func(*http.Response) error, authToken string, logSink LogSinkCallback) *HTTPClient
Stage creates HTTPClient for calling stage lambda function through api gateway
func (*HTTPClient) Do ¶
func (b *HTTPClient) Do(method string, req interface{}, rsp interface{}) error
type LambdaClient ¶
type LambdaClient struct {
// contains filtered or unexported fields
}
func Lambda ¶
func Lambda(invoker Invoker, functionName string, logSink LogSinkCallback) *LambdaClient
Lambda creates LambdaClient for calling lambda function
func (*LambdaClient) Do ¶
func (l *LambdaClient) Do(method string, req, rsp interface{}) error
type LogSinkCallback ¶
type LogSinkCallback func(chan []byte)
Click to show internal directories.
Click to hide internal directories.