constant

package
v0.0.0-...-ca33a47 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2018 License: GPL-3.0 Imports: 0 Imported by: 4

Documentation

Overview

Package constant package contains files with various constants in the application.

Index

Constants

View Source
const ApplicationJSON = "application/json"

ApplicationJSON - Content-type application/json option for header.

View Source
const ContentType = "Content-Type"

ContentType - Http header variable for Content-Type.

View Source
const Delete = "DELETE"

Delete - DELETE http method

View Source
const ErrorCouldNotContactFirebase = "failed to contact firebase"

ErrorCouldNotContactFirebase - Could not establish connection with firebase.

View Source
const ErrorCouldNotCreateUser = "failed to create new user"

ErrorCouldNotCreateUser - could not create new user.

View Source
const ErrorCouldNotGetUser = "failed to fetch requested user"

ErrorCouldNotGetUser - could not get requested user.

View Source
const ErrorCouldNotUpdateUser = "failed to update requested user, make sure user exists"

ErrorCouldNotUpdateUser - could not update user.

View Source
const ErrorDeleteUser = "failed to delete user"

ErrorDeleteUser - could not delete user.

View Source
const ErrorForbidden = "Forbidden"

ErrorForbidden - action not permitted

View Source
const ErrorInvalidContentType = "invalid content-type"

ErrorInvalidContentType - not a igc file

View Source
const ErrorNoQueriesInPath = "no queries detected in path"

ErrorNoQueriesInPath - No queries detected in path.

View Source
const ErrorNoUIDProvided = "no uId provided"

ErrorNoUIDProvided - No uid present in query.

View Source
const ErrorNotImplemented = "not implemented"

ErrorNotImplemented - User tried accessing method marked 'not implemented'.

View Source
const ErrorProcessBodyFailed = "failed to process request body"

ErrorProcessBodyFailed - could not process request body.

View Source
const FirebaseQueryOrder = "Time"

FirebaseQueryOrder - What to order the Firestore Query with (time)

View Source
const FirebaseStorageBucket = "gt-backend-8b9c2.appspot.com"

FirebaseStorageBucket url

View Source
const Get = "GET"

Get - GET http method

View Source
const GoogleCredEnvVar = "GOOGLE_APPLICATION_CREDENTIALS"

GoogleCredEnvVar - name of environment variable for hosting cred file in cloud

View Source
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.

View Source
const IGCExtension = "igc"

IGCExtension - file type igc.

View Source
const IgcMetadata = "igc-metadata"

IgcMetadata - Name of the collection containing igc metadata in firestore

View Source
const LSRoot = "Records"

LSRoot - Local-storage-root, root folder of igc tracks.

View Source
const MaxIgcFileSize = 15 * 1024 * 1024

MaxIgcFileSize - Max size of an IGC file (MB - KB - B)

View Source
const PageSize = 20

PageSize - Size of a page in a Firestore Query

View Source
const Post = "POST"

Post - POST http method.

View Source
const Put = "PUT"

Put - PUT http method

View Source
const ScraperUID = "iP1dgAHJ2JNce4hGr9H0RugkCHP2"

ScraperUID - Scraper UID

View Source
const Slash = "/"

Slash - "/" - since it is used fairly often is it nice if something about pathing changes.

View Source
const TestUID = "o1Sz791YSHby0PCe51JlxSD6G533"

TestUID - E2E Test UID

View Source
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.

Jump to

Keyboard shortcuts

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