blob: 459efb2d9f2ede49a7d9e0cd2be35afa6dc43e14 [file] [log] [blame]
package constants
const (
//add to acceptedTimeUnitList in init() if case any other new timeUnit is added
TimeUnitSECOND = "second"
TimeUnitMINUTE = "minute"
TimeUnitHOUR = "hour"
TimeUnitDAY = "day"
TimeUnitWEEK = "week"
TimeUnitMONTH = "month"
//errors
InvalidQuotaTimeUnitType = "invalidQuotaTimeUnitType"
InvalidQuotaBucketType = "invalidQuotaType"
InvalidQuotaType = "invalidQUotaType"
InvalidQuotaPeriod = "invalidQuotaPeriod"
QuotaTypeCalendar = "calendar" // after start time
QuotaTypeRollingWindow = "rollingwindow" // in the past "window" time
cacheKeyDelimiter = "|"
UnableToParseBody = "unable_to_parse_body"
UnMarshalJSONError = "unmarshal_json_error"
ErrorConvertReqBodyToEntity = "error_convert_reqBody_to_entity"
ConfigQuotaBasePath = "quota_base_path"
ErrorCheckingQuotaLimit = "error_checking_quota_limit"
QuotaBasePathDefault = "/quota"
ConfigCounterServiceBasePath = "counterService_base_path"
URLCounterServiceNotSet = "url_counter_service_not_set"
URLCounterServiceInvalid = "url_counter_service_invalid"
MarshalJSONError = "marshal_JSON_error"
)