modulepackage
0.0.0-20181114192748-ca33a4720691
Repository: https://github.com/glidingtracks/gt-backend.git
Documentation: pkg.go.dev
# README
gt-backend
Backend for handling uploading, storing and processing IGC files, and users in the system. REST
Cloning
Update govendor
- govendor sync
Pre running locally (linux)
- export PORT=xxxx
# Functions
DebugLogErrMsg - Logs request with both error and message.
DebugLogErrNoMsg - Logs request without message.
DebugLogNoErrMsg - Logs request without error.
DebugLogPrepareHeader - Returns a prepared header for logging.
DeleteFileFromLocalStorage takes a uid and a filename and deletes a File determined by the params.
FileToLines will traverse and return an array with all file lines.
GetBoolFromString converts a string representation of bool to type bool default false.
GetLogConfig fetch logger config.
GetLogWriter will return a file log writer.
GetUnixTime returns a unix timestamp for when the method got called.
LogFatalErrMsg - Logs request with both error and message.
LogFatalErrNoMsg - Logs request without message.
LogFatalNoErrMsg - Logs request without error.
LogIncomingRequests - Logs request traffic into our app.
SaveFileToLocalStorage - Save the uploaded File in the filesystem.
SetLogConfig sets logger config.
SetLogConfigDefault restore logger initial config.
# Constants
APPLICATION log file prefix.
CONNECTOR log file prefix.
LOGS log directory name.
# Variables
LogPath stores log directory path.
# Structs
A A record in IGC spec, always the first record in a IGC File.
H record, Metadata/header information from a FR recorded flight.
InternalLogHeader internal log entry without error and message for initialization.
LogConfig enables users to dictate where log file are to be put.
Parser holds a file, mostly done to keep as much as possible private, while also support testing.
Record is the metadata information about a IGC approved FR recorded flight.
SecurityMiddleware - capture http.Handle.
# Type aliases
LoggingMiddleware - capture http.Handle.