blob: 2b640ac08c70040f02619d9c1b1c07df0b9460d6 [file] [log] [blame]
package constants
import "time"
const (
//config variables.
ApigeeSyncBearerToken = "apigeesync_bearer_token"
ConfigCounterServiceBasePath = "apidquota_counterService_base_path"
//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"
InvalidQuotaType = "invalidQuotaType"
InvalidQuotaPeriod = "invalidQuotaPeriod"
AsyncQuotaBucketEmpty = "AsyncDetails_for_quotaBucket_are_empty"
QuotaTypeCalendar = "calendar" // after start time
QuotaTypeRollingWindow = "rollingwindow" // in the past "window" time
CacheKeyDelimiter = "|"
CacheTTL = time.Minute * 1
DefaultQuotaSyncTime = 300 //in seconds
DefaultCount = 0
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"
URLCounterServiceNotSet = "url_counter_service_not_set"
URLCounterServiceInvalid = "url_counter_service_invalid"
MarshalJSONError = "marshal_JSON_error"
)