types

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHTTPClient

func MakeHTTPClient(insecure bool, timeout time.Duration) *http.Client

MakeHTTPClient generates an HTTP Client setting basic properties including timeouts

Types

type Invoker

type Invoker interface {
	Invoke(topic string, message []byte)
}

Invoker is the Interface used by the OpenFaaS Connector SDK to perform invocations of Lambdas based on a provided topic and message

type OpenFaaSInvocation

type OpenFaaSInvocation struct {
	Topic   string
	Message *[]byte
}

OpenFaaSInvocation represent an Event Specification used during invocation

func NewInvocation

func NewInvocation(delivery amqp.Delivery) *OpenFaaSInvocation

NewInvocation creates a OpenFaaSInvocation from an amqp.Delivery.

Jump to

Keyboard shortcuts

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