Documentation ¶
Index ¶
Constants ¶
View Source
const ( CACHE_NAME = "cachename" KEYDB_URL = "localhost:5380" KEYDB_PASSWORD = "" KEYDB_DB = 0 )
View Source
const ( ZERO = 0 DOLLAR_SYMBOL = "$" DOLLAR_DOLLAR = "$$" DOT = "." )
View Source
const ( LESS_THAN_OPERATOR = "lt" LESS_THAN_EQUAL_OPERATOR = "lte" EQUAL_OPERATOR = "eq" GREATER_THAN_OPERATOR = "gt" GREATER_THAN_EQUAL_OPERATOR = "gte" )
View Source
const ( MATCH_AGG_OP = "$match" UNWIND_AGG_OP = "$unwind" PATH = "path" SORT_AGG_OP = "$sort" FILTER_AGG_OP = "$filter" PROJECT_AGG_OP = "$project" COND_OPERATOR = "cond" INPUT = "input" AS = "as" //comparioson operators DOLLAR_EQUAL_OPERATOR = "$eq" //logical_operators OR_OPERATOR = "$or" AND_OPERATOR = "$and" MAP_AGG_OPERATOR = "$map" PROJECT_AGG_OPERATOR = "$project" INCLUDE_FIELD = 1 IN = "in" ELEMMATCH_AGG_OPERATOR = "$elemMatch" SORT_AGG_OPERATOR = "$sort" ASCENDING_ORDER = 1 DESCENDING_ORDER = -1 )
mongodb constants
View Source
const ( ID = "_id" BACKEND_NAME = "backendName" TYPE = "type" REGION = "region" BUCKETS = "buckets" NUMBER_OF_BUCKETS = "numberOfBuckets" NUMBER_OF_FILTERED_BUCKETS = "numberOFilteredBuckets" BUCKET = "bucket" NAME = "name" //* bucket.+ actual field name BUCKET_NAME = "bucket.name" BUCKETS_NAME = "buckets.name" BUCKET_TOTAL_SIZE = "bucket.totalSize" BUCKETS_TOTAL_SIZE = "buckets.totalSize" TOTAL_SIZE = "totalSize" FILTERED_BUCKET_SIZE = "filteredBucketSize" OBJECTS = "objects" OBJECT = "object" //* object.+ actual field name OBJECT_SIZE = "object.size" OBJECT_NAME = "object.name" OBJECTS_SIZE = "objects.size" OBJECTS_NAME = "objects.name" CREATION_DATE = "creationDate" BUCKET_ACL = "bucketAcl" NUMBER_OF_OBJECTS = "numberOfObjects" NUMBER_OF_FILTERED_OBJECTS = "numberOfFilteredObjects" BUCKET_NUMBER_OF_FILTERED_OBJECTS = "bucket.numberOfFilteredObjects" BUCKET_TAGS = "bucketTags" )
View Source
const ( ASC = "asc" DESC = "desc" )
View Source
const ( //* CACHE_LIMIT 100mb CACHE_LIMIT = 100 * 1024 * 1024 CACHE_TTL_IN_SECONDS = 60 * 10 HSET = "HSET" EXPIREMEMBER = "EXPIREMEMBER" )
View Source
const (
AWS_S3 = "aws-s3"
)
type constants for cloud vendors
Variables ¶
View Source
var (
AWS_VALID_REGIONS = []string{"us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-2",
"ap-southeast-3", "ap-south-1", "ap-northeast-3", "ap-northeast-2", "ap-southeast-1", "ap-southeast-2",
"ap-northeast-1", "ca-central-1", "eu-central-1", "eu-west-1", "eu-west-2", "eu-south-1", "eu-west-3",
"eu-south-2", "eu-north-1", "eu-central-2", "me-south-1", "me-central-1", "sa-east-1", "us-gov-east-1",
"us-gov-west-1"}
)
valid region for AWS
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.