constants

package
v0.0.0-...-4bd82ba Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MYSQL = iota
	POSTGRES
)
View Source
const (
	DBQueryNotFoundCode uint = 3_01_001_004
	DBQueryErrorCode    uint = 0_01_002_001
	InternalCodeError   uint = 0_01_004_001
)

Category Infrastructures

View Source
const (
	InvalidHeaderXDeviceTypeCode uint = 3_01_001_003
	InvalidHeaderCode            uint = 3_01_001_003
	QueryParamDataInvalidCode    uint = 3_01_001_002
	FieldMissingCode             uint = 3_01_001_005
)

Category Request Param

View Source
const (
	DataPayloadInvalidCode uint = 3_01_001_001
	FieldsRequiredCode     uint = 3_01_001_002
)

Category Business Logic

View Source
const (
	// database name...
	MongoDatabase string = "ms-buyer-location"

	// List of all collections...
	CollectionLocation string = "locations"
)
View Source
const ActiveConnectionDb = "active"
View Source
const AuthorizationGrantType = "authorization_code"
View Source
const ClientCredentialsGrantType = "client_credentials"
View Source
const ClientIdAndSecretNotFound = "Client id and secret not found."
View Source
const ConnectionNotEstablished = "Connection not Established!"
View Source
const DataInvalid = "Invalid Data."
View Source
const DatabaseCommandError = "Database Command Error."
View Source
const DatabaseQueryError = "Database Query Error."
View Source
const DateOnlyFormat string = "2006-01-02"
View Source
const DbDriverNotFound = "DBGorm Driver Not Found!"
View Source
const DefaultConnectionDB = "default"
View Source
const DefaultPort = 8080
View Source
const DeviceCodeGrantType = "device_code"
View Source
const ErrorCannotConvertModelToEntity = "Cannot convert model {model} to entity {entity}"
View Source
const ErrorCommandTypeNotFound = "Command type not found."
View Source
const ErrorEventAlreadyAdded = "Event Duplicate."
View Source
const ErrorEventNameAlreadyAdded = "Event {name} already added."
View Source
const ErrorFieldNotFound = "Field {fields} should not be empty."
View Source
const HeaderInvalid = "Invalid Header."
View Source
const ISODateTimeFormat string = "2006-01-02T15:04:05Z"
View Source
const InternalServerError = "Internal Server Error."
View Source
const LOCAL = "local"
View Source
const OrderCreatedEvent = "order_created"
View Source
const PRODUCTION = "production"
View Source
const PostgresDriverName = "postgres"
View Source
const QueryParamInvalid = "Invalid Query param."
View Source
const RecordFieldsNotFound = "{fields} not found."
View Source
const RecordNotFound = "Record Not Found."
View Source
const RefreshTokenGrantType = "refresh_token"
View Source
const SQLTimestampFormat string = "2006-01-02 15:04:05"
View Source
const STAGING = "staging"
View Source
const SendEmailListener = "send_email_listener"
View Source
const TokenTypeBearer = "Bearer"
View Source
const TotalWorkerMax = 4
View Source
const ValidationError = "Validation error."
View Source
const WesternIndonesiaTimeFormat string = "2006-01-02T15:04:05Z07:00"

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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