response

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Ok - ok
	Ok = "OK"
	// RequestBodyNil - Request body is nil
	RequestBodyNil = "Request body is nil"
	// InvalidRequestMethod - Request Method is invalid
	InvalidRequestMethod = "Invalid HTTP Request Method"
	// TooManyRequests - too many requests
	TooManyRequests = "Max Requests Limit reached"
	// NoWriteKeyInBasicAuth - Failed to read writeKey from header
	NoWriteKeyInBasicAuth = "Failed to read writeKey from header"
	// NoWriteKeyInQueryParams - Failed to read writeKey from Query Params
	NoWriteKeyInQueryParams = "Failed to read writeKey from Query Params"
	// RequestBodyReadFailed - Failed to read body from request
	RequestBodyReadFailed = "Failed to read body from request"
	// RequestBodyTooLarge - Request size exceeds max limit
	RequestBodyTooLarge = "Request size exceeds max limit"
	// InvalidWriteKey - Invalid Write Key
	InvalidWriteKey = "Invalid Write Key"
	// InvalidJSON - Invalid JSON
	InvalidJSON = "Invalid JSON"
	// InvalidWebhookSource - Source does not accept webhook events
	InvalidWebhookSource = "Source does not accept webhook events"
	// SourceTransformerResponseErrorReadFailed - Failed to read error from source transformer response
	SourceTransformerResponseErrorReadFailed = "Failed to read error from source transformer response"
	// SourceDisabled - write key is present, but the source for it is disabled.
	SourceDisabled = "Source is disabled"
	// SourceTransformerFailed - Internal server error in source transformer
	SourceTransformerFailed = "Internal server error in source transformer"
	// SourceTransformerFailedToReadOutput - Output not found in source transformer response
	SourceTransformerFailedToReadOutput = "Output not found in source transformer response"
	// SourceTransformerInvalidResponseFormat - Invalid format of source transformer response
	SourceTransformerInvalidResponseFormat = "Invalid format of source transformer response"
	// SourceTransformerInvalidOutputFormatInResponse - Invalid output format in source transformer response
	SourceTransformerInvalidOutputFormatInResponse = "Invalid output format in source transformer response"
	// SourceTransformerInvalidOutputJSON - Invalid output json in source transformer response
	SourceTransformerInvalidOutputJSON = "Invalid output json in source transformer response"
	// NonIdentifiableRequest - Request neither has anonymousId nor userId
	NonIdentifiableRequest = "Request neither has anonymousId nor userId"
	// ErrorInMarshal - Error while marshalling
	ErrorInMarshal = "Error while marshalling"
	// ErrorInParseForm - Error during parsing form
	ErrorInParseForm = "Error during parsing form"
	// ErrorInParseMultiform - Error during parsing multiform
	ErrorInParseMultiform = "Error during parsing multiform"
	// NotKassetteEvent = Event is not a Valid Kassette Event
	// NotKassetteEvent = Event is not a Valid Kassette Event
	NotKassetteEvent = "Event is not a valid kassette event"
	// ContextDeadlineExceeded - context deadline exceeded
	ContextDeadlineExceeded = "context deadline exceeded"
	// GatewayTimeout - Gateway timeout
	GatewayTimeout = "Gateway timeout"
)

Variables

This section is empty.

Functions

func GetErrorStatusCode

func GetErrorStatusCode(key string) int

func GetPixelResponse

func GetPixelResponse() string

func GetStatus

func GetStatus(key string) string

func MakeResponse

func MakeResponse(msg string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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