Documentation ¶
Overview ¶
Package constant package contains files with various constants in the application.
Index ¶
Constants ¶
const ApplicationJSON = "application/json"
ApplicationJSON - Content-type application/json option for header.
const ContentType = "Content-Type"
ContentType - Http header variable for Content-Type.
const Delete = "DELETE"
Delete - DELETE http method
const ErrorCouldNotContactFirebase = "failed to contact firebase"
ErrorCouldNotContactFirebase - Could not establish connection with firebase.
const ErrorCouldNotCreateUser = "failed to create new user"
ErrorCouldNotCreateUser - could not create new user.
const ErrorCouldNotGetUser = "failed to fetch requested user"
ErrorCouldNotGetUser - could not get requested user.
const ErrorCouldNotUpdateUser = "failed to update requested user, make sure user exists"
ErrorCouldNotUpdateUser - could not update user.
const ErrorDeleteUser = "failed to delete user"
ErrorDeleteUser - could not delete user.
const ErrorForbidden = "Forbidden"
ErrorForbidden - action not permitted
const ErrorInvalidContentType = "invalid content-type"
ErrorInvalidContentType - not a igc file
const ErrorNoQueriesInPath = "no queries detected in path"
ErrorNoQueriesInPath - No queries detected in path.
const ErrorNoUIDProvided = "no uId provided"
ErrorNoUIDProvided - No uid present in query.
const ErrorNotImplemented = "not implemented"
ErrorNotImplemented - User tried accessing method marked 'not implemented'.
const ErrorProcessBodyFailed = "failed to process request body"
ErrorProcessBodyFailed - could not process request body.
const FirebaseQueryOrder = "Time"
FirebaseQueryOrder - What to order the Firestore Query with (time)
const FirebaseStorageBucket = "gt-backend-8b9c2.appspot.com"
FirebaseStorageBucket url
const Get = "GET"
Get - GET http method
const GoogleCredEnvVar = "GOOGLE_APPLICATION_CREDENTIALS"
GoogleCredEnvVar - name of environment variable for hosting cred file in cloud
const GoogleServiceCredName = "gt-backend-8b9c2-firebase-adminsdk-0t965-d5b53ac637.json"
GoogleServiceCredName supplies the name of the file containing credentials for our Google service account. Used to authenticate with firebase.
const IGCExtension = "igc"
IGCExtension - file type igc.
const IgcMetadata = "igc-metadata"
IgcMetadata - Name of the collection containing igc metadata in firestore
const LSRoot = "Records"
LSRoot - Local-storage-root, root folder of igc tracks.
const MaxIgcFileSize = 15 * 1024 * 1024
MaxIgcFileSize - Max size of an IGC file (MB - KB - B)
const PageSize = 20
PageSize - Size of a page in a Firestore Query
const Post = "POST"
Post - POST http method.
const Put = "PUT"
Put - PUT http method
const ScraperUID = "iP1dgAHJ2JNce4hGr9H0RugkCHP2"
ScraperUID - Scraper UID
const Slash = "/"
Slash - "/" - since it is used fairly often is it nice if something about pathing changes.
const TestUID = "o1Sz791YSHby0PCe51JlxSD6G533"
TestUID - E2E Test UID
const TextPlain = "text/plain"
TextPlain - Content-type text/plain option for header.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.