Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserRole = "User" AdminRole = "Admin" )
Roles
View Source
const ( ActiveStatus = "Active" LockedStatus = "Locked" )
Status
View Source
const ( SignInFunc = "/signin" SignUpFunc = "/signup" SignOffFunc = "/signoff" SearchTrainFormTemplate = "./web/templates/searchtrain.html" SearchTrainPostAction = "/searchtrain" SearchTrainFormPostAction = "/searchtrainform" SearchTrainOptionName = "Search Trains" MakeReservPostAction = "/makereservation" MakeReservOptionName = "Make a Reservation" CancelReservPostAction = "/cancelreservation" CancelReservOptionName = "Cancel a Reservation" ViewReservPostAction = "/viewreservation" ViewReservOptionName = "View Reservations" // Admin specific Options AddTrainSchemaFormTemplate = "./web/templates/addtrainschemaform.html" AddTrainSchemaFormPostAction = "/addtrainschemaform" AddTrainSchemaPostAction = "/addtrainschema" AddTrainSchemaOptionName = "Add Train Schema" RemoveTrainSchemaPostAction = "/removetrainschema" RemoveTrainSchemaOptionName = "Remove Train Schema" ViewTrainSchemaPostAction = "/viewtrainschema" ViewTrainSchemaOptionName = "View Train Schema" UpdateTrainSchemaPostAction = "/updatetrainschema" UpdateTrainSchemaOptionName = "Update Train Schema" )
POST Action vs UI Names
View Source
const ( SessionTokenCookie = "session_token" UserIDCookie = "user_id" CookieAge = 300 )
Server specific
View Source
const ( TrainName = "TrainName" TrainNumber = "TrainNumber" Frequency = "Frequency" Tickets = "Tickets" Stops = "Stops" StopsDotName = "Stops.Name" From = "From" To = "To" CheckboxOn = "on" Monday = "Mon" Tuesday = "Tue" Wednesday = "Wed" Thursday = "Thu" Friday = "Fri" Saturday = "Sat" Sunday = "Sun" AvailPrefix = "ticket[" AvailClass = "][class]" AvailCount = "][count]" AvailFare = "][fare]" StopPrefix = "stop[" StopPosition = "][position]" StopStation = "][station]" StopArrival = "][arrival]" StopDepart = "][departure]" StopArriveOffset = "][arriveOffset]" StopDepartOffset = "][departOffset]" OriginPos = 1 DestinPos = 99 // Mon Jan 2 15:04:05 -0700 MST 2006 DateLayout = "2006-01-02" TimeLayout = "2006-01-02 15:04" )
Train Schema fields
View Source
const ( ID = "_id" TrainSchemaID = "trainschema_id" Date = "Date" Availability = "Availability" TicketIDs = "traintickets_id" ExpireAt = "expireAt" )
Chart fields
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.