Documentation ¶
Index ¶
- Constants
- func AssertElResponse(c *clients.Clients, resp *http.Response, elname, namespace string)
- func CleanupTriggers(c *clients.Clients, elName, namespace string)
- func CreateHTTPClient() *http.Client
- func CreateHTTPSClient() *http.Client
- func ExposeEventListner(c *clients.Clients, elname, namespace string) string
- func ExposeEventListnerForTLS(c *clients.Clients, elname, namespace string) string
- func GetRoute(elname, namespace string) string
- func GetRouteURL(routeName, namespace string) string
- func GetSignature(input []byte, key string) string
- func MockPostEvent(routeurl, interceptor, eventType, payload string, isTLS bool) *http.Response
- func MockPostEventWithEmptyPayload(routeurl string) *http.Response
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 CleanupTriggers ¶
func CreateHTTPSClient ¶
CreateHTTPSClient for connection re-use
func ExposeEventListner ¶
func GetRouteURL ¶
func GetSignature ¶
GetSignature is a HMAC sha1 generator
func MockPostEvent ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.