package
0.0.0-20190628093746-affaa533fc2e
Repository: https://github.com/szymongib/kyma.git
Documentation: pkg.go.dev
# Functions
ErrorInvalidFieldLength returns an API error instance for the invalid field length error.
ErrorResponseBadPayload returns an API error instance for the bad payload error.
ErrorResponseBadRequest returns an API error instance for the bad request error.
ErrorResponseInternalServer creates API Error response for case of internal server error.
ErrorResponseMissingFieldData returns an API error instance for the missing field data error.
ErrorResponseMissingFieldEventTime returns an API error instance for the missing field event time error.
ErrorResponseMissingFieldEventType returns an API error instance for the missing field event type error.
ErrorResponseMissingFieldEventTypeVersion returns an API error instance for the missing field event type version error.
ErrorResponseMissingFieldSourceID returns an API error instance for the missing field source ID error.
ErrorResponseRequestBodyTooLarge creates API Error response for case of request body being too large.
ErrorResponseWrongEventID returns an API error instance for the wrong event ID error.
ErrorResponseWrongEventTime returns an API error instance for the wrong event time error.
ErrorResponseWrongEventType returns an API error instance for the wrong event type error.
ErrorResponseWrongEventTypeVersion returns an API error instance for the wrong event type version error.
ErrorResponseWrongSourceID returns an API error instance for the wrong source ID error.
GetDefaultEventOptions returns a new default event options instance.
ValidatePublish validates a publish POST request.
# Constants
AllowedEventIDChars regex.
AllowedEventTypeChars regex.
AllowedEventTypeVersionChars regex.
AllowedSourceIDChars regex.
DefaultMaxEventTypeLength default value.
DefaultMaxEventTypeVersionLength default value.
DefaultMaxSourceIDLength default value.
ErrorMessageBadPayload represents the error message for `ErrorTypeBadPayload`.
ErrorMessageBadRequest represents the error message for `ErrorTypeBadRequest`.
ErrorMessageInternalServerError represents the error message for `ErrorTypeInternalServerError`.
ErrorMessageInvalidField represents the error message for `ErrorTypeInvalidField`.
ErrorMessageInvalidFieldLength represents the error message for `ErrorTypeInvalidFieldLength`.
ErrorMessageMissingField represents the error message for `ErrorTypeMissingField`.
ErrorMessageMissingSourceID represents the error message for `ErrorTypeMissingFieldOrHeader`.
ErrorMessageRequestBodyTooLarge is error message for error responses where request body is too large.
ErrorTypeBadPayload The request payload has incorrect syntax according to the sent Content-Type.
ErrorTypeBadRequest A generic error for bad requests sent by the clients.
ErrorTypeInternalServerError Some unexpected internal error occurred while processing the request.
ErrorTypeInvalidField Sub-level error type of `ErrorTypeValidationViolation` representaing that the requested body
payload for the POST or PUT operation violates the validation constraints.
ErrorTypeInvalidFieldLength is error type code for invalid field length.
ErrorTypeInvalidHeader is error type code for invalid header.
ErrorTypeMissingField Sub-level error type of `ErrorTypeValidationViolation` representaing that the requested body
payload for a POST or PUT operation is missing, which violates the defined validation constraints.
ErrorTypeMissingFieldOrHeader error type for a missing field or header.
ErrorTypeRequestBodyTooLarge is error type code for error responses where request body is too large.
ErrorTypeValidationViolation Top level validation error.
FieldData value.
FieldEventID value.
FieldEventTime value.
FieldEventType value.
FieldEventTypeVersion value.
FieldSourceID value.
FieldTraceContext value.
HeaderSourceID heaver.
# Structs
CloudEvent represents the event to be persisted to NATS.
Error represents API error response code.
ErrorDetail represents error cause.
EventOptions represents the event options.
Request represents a publish request.
Response represents a successful publish response.
# Interfaces
AnyValue implements the service definition of AnyValue.