triggers

package
v0.0.0-...-b40b7a5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 28 Imported by: 1

Documentation

Index

Constants

View Source
const (
	//MaxIdleConnections specifies max connection to the http client
	MaxIdleConnections int = 30
	//RequestTimeout specifies request timeout with http client
	RequestTimeout int = 15
)

Variables

This section is empty.

Functions

func AssertElResponse

func AssertElResponse(c *clients.Clients, resp *http.Response, elname, namespace string)

func CleanupTriggers

func CleanupTriggers(c *clients.Clients, elName, namespace string)

func CreateHTTPClient

func CreateHTTPClient() *http.Client

CreateHTTPClient for connection re-use

func CreateHTTPSClient

func CreateHTTPSClient() *http.Client

CreateHTTPSClient for connection re-use

func ExposeEventListner

func ExposeEventListner(c *clients.Clients, elname, namespace string) string

func ExposeEventListnerForTLS

func ExposeEventListnerForTLS(c *clients.Clients, elname, namespace string) string

func GetRoute

func GetRoute(elname, namespace string) string

func GetRouteURL

func GetRouteURL(routeName, namespace string) string

func GetSignature

func GetSignature(input []byte, key string) string

GetSignature is a HMAC sha1 generator

func MockPostEvent

func MockPostEvent(routeurl, interceptor, eventType, payload string, isTLS bool) *http.Response

func MockPostEventWithEmptyPayload

func MockPostEventWithEmptyPayload(routeurl string) *http.Response

Types

This section is empty.

Jump to

Keyboard shortcuts

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