http

package
v0.0.0-...-089673d Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const Type = function.ProviderType("http")

Type of provider.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

type HTTP struct {
	URL string `json:"url" validate:"required,url"`
}

HTTP function implementation

func (HTTP) Call

func (h HTTP) Call(payload []byte) ([]byte, error)

Call HTTP endpoint.

func (HTTP) MarshalLogObject

func (h HTTP) MarshalLogObject(enc zapcore.ObjectEncoder) error

MarshalLogObject is a part of zapcore.ObjectMarshaler interface.

type ProviderLoader

type ProviderLoader struct{}

ProviderLoader implementation

func (ProviderLoader) Load

func (p ProviderLoader) Load(data []byte) (function.Provider, error)

Load decode JSON data as Config and return initialized Provider instance.

Jump to

Keyboard shortcuts

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