constant

package
v0.0.0-...-ff2bd9c Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	OK                                         ResponseCode = "RC-001"
	CUT_OFF                                    ResponseCode = "RC-002"
	FAILED_TO_PROCEED                          ResponseCode = "RC-003"
	BAD_REQUEST                                ResponseCode = "RC-004"
	UNPROCESSABLE_ENTITY                       ResponseCode = "RC-005"
	TIMEOUT                                    ResponseCode = "RC-006"
	CLIENT_TIMEOUT                             ResponseCode = "RC-007"
	FAILED_TO_ESTABLISHED_CONNECTION_TO_CLIENT ResponseCode = "RC-008"
	INTERNAL_SERVER_ERROR                      ResponseCode = "RC-009"
	NOT_FOUND                                  ResponseCode = "RC-010"
	UNAUTHORIZED                               ResponseCode = "RC-011"
	CONFLICT                                   ResponseCode = "RC-012"
	FORBIDDEN                                  ResponseCode = "RC-013"

	HTTP_GET    HTTPMethod = "GET"
	HTTP_POST   HTTPMethod = "POST"
	HTTP_PUT    HTTPMethod = "PUT"
	HTTP_PATCH  HTTPMethod = "PATCH"
	HTTP_DELETE HTTPMethod = "DELETE"

	LOCAL       EnvironmentType = "local"
	DEVELOPMENT EnvironmentType = "development"
	PRODUCTION  EnvironmentType = "production"

	ENVIRONMENT_KEY string = "env"

	EVENT_IDEMPOTENT_ID = "idempotent_id"

	AccessToken   HTTPHeader = "access-token"
	Bearer        HTTPHeader = "bearer"
	Basic         HTTPHeader = "basic"
	CSRFToken     HTTPHeader = "csrf-token"
	Authorization HTTPHeader = "authorization"
	SessionToken  HTTPHeader = "session-token"

	CLIENT_REQUEST_LOG_CREATED_EVENT Event = "client_request_log_created_event"

	InternalServerErrorResponseMessage ResponseMessage = "we truly apologize for the issue, please help us by contacting our customer service, we will work on it ASAP"
	ConflictResponseMessage            ResponseMessage = "the requested action cannot be completed due to conflicting information"
	NotFoundResponseMessage            ResponseMessage = "the data that you are looking for is not found"
	BadRequestResponseMessage          ResponseMessage = "the mandatory data you provided is not complete or incorrect format"
	UnauthorizedResponseMessage        ResponseMessage = "unauthorized access"
	UnprocessableEntityResponseMessage ResponseMessage = "the data you provide cannot be process for this moment, please try again later or contact our customer support"
	OKResponseMessage                  ResponseMessage = "ok"
	AcceptedResponseMessage            ResponseMessage = "accepted"
	NoContentResponseMessage           ResponseMessage = "no content"
	NotAcceptableResponseMessage       ResponseMessage = "not acceptable data provided"
	ForbiddenResponseMessage           ResponseMessage = "forbidden"
)

Variables

Functions

This section is empty.

Types

type EnvironmentType

type EnvironmentType string

type Event

type Event string

type HTTPHeader

type HTTPHeader string

type HTTPMethod

type HTTPMethod string

type ResponseCode

type ResponseCode string

type ResponseMessage

type ResponseMessage string

Jump to

Keyboard shortcuts

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