Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { ID int64 `json:"id"` Name *string `json:"name"` Description *string `json:"description"` Type string `json:"type"` User int64 `json:"user"` Vehicle *int64 `json:"vehicle"` Job *int64 `json:"job"` Task *int64 `json:"task"` Is_read *int `json:"isRead"` Read_at *time.Time `json:"readAt"` Alert_at *time.Time `json:"alertAt"` Created_at time.Time `json:"createdAt"` Updated_at time.Time `json:"updatedAt"` }
type Claims ¶
type Claims struct { ID int64 `json:"id"` Username string `json:"username"` Is_admin bool `json:"isAdmin"` jwt.RegisteredClaims }
used for storing data in JWT
type Credentials ¶
used for auth purposes
type Job ¶
type Job struct { // meta data ID int64 `json:"id"` Name string `json:"name"` Description *string `json:"description"` Instructions *string `json:"instructions"` Is_template int `json:"isTemplate"` Is_complete int `json:"isComplete"` // ownership Vehicle *int64 `json:"vehicle"` User int64 `json:"user"` Origin_job *int64 `json:"originJob"` Labels []Label `json:"labels"` // repeats Repeats int `json:"repeats"` Odo_interval *int64 `json:"odoInterval"` Time_interval *int64 `json:"timeInterval"` Time_interval_unit *string `json:"timeIntervalUnit"` // times Due_date *time.Time `json:"dueDate"` Completed_at *time.Time `json:"completedAt"` Created_at time.Time `json:"createdAt"` Updated_at time.Time `json:"updatedAt"` }
used for existing job data
type Label ¶
type Label struct { // meta data ID int64 `json:"id"` Name string `json:"name"` Color *string `json:"color"` // ownership User *int64 `json:"user"` // times Created_at time.Time `json:"createdAt"` Updated_at time.Time `json:"updatedAt"` }
used for existing label data
type NewJob ¶
type NewJob struct { // meta data Name string `json:"name"` Description *string `json:"description"` Instructions *string `json:"instructions"` Is_template *int `json:"isTemplate"` // ownership Vehicle *int64 `json:"vehicle"` User *int64 `json:"user"` Origin_job *int64 `json:"originJob"` // repeats Repeats *int `json:"repeats"` Odo_interval *int64 `json:"odoInterval"` Time_interval *int64 `json:"timeInterval"` Time_interval_unit *string `json:"timeIntervalUnit"` // times Due_date *time.Time `json:"dueDate"` }
used for new job forms
type NewLabel ¶
type NewLabel struct { // meta data Name string `json:"name"` Color *string `json:"color"` // ownership User *int64 `json:"user"` }
used for new label forms
type NewTask ¶
type NewTask struct { // meta data Name string `json:"name"` Description *string `json:"description"` // part Part_name *string `json:"partName"` Part_link *string `json:"partLink"` // times Due_date *time.Time `json:"dueDate"` }
used for new job forms
type NewUser ¶
type NewUser struct { Username string `json:"username"` Password *string `json:"password"` Is_admin *int `json:"isAdmin"` Email *string `json:"email"` }
used for new user forms
type NewVehicle ¶
type NewVehicle struct { // meta data Name string `json:"name"` Description *string `json:"description"` Type *string `json:"type"` Is_metric *int `json:"isMetric"` // vehicle data Vin *string `json:"vin"` Year *int64 `json:"year"` Make *string `json:"make"` Model *string `json:"model"` Trim *string `json:"trim"` // life data Odometer *int `json:"odometer"` // ownership User *int64 `json:"user"` }
type Passwords ¶
type Passwords struct { Username string `json:"username"` CurrentPassword *string `json:"currentPassword"` NewPassword *string `json:"newPassword"` }
used for changing passwords
type Task ¶
type Task struct { // meta data ID int64 `json:"id"` Name string `json:"name"` Description *string `json:"description"` Is_complete int `json:"isComplete"` // ownership Job *int64 `json:"job"` // part Part_name *string `json:"partName"` Part_link *string `json:"partLink"` // times Due_date *time.Time `json:"dueDate"` Completed_at *time.Time `json:"completedAt"` Created_at time.Time `json:"createdAt"` Updated_at time.Time `json:"updatedAt"` }
used for existing job data
type User ¶
type User struct { ID int64 `json:"id"` Username string `json:"username"` Email *string `json:"email"` Description *string `json:"description"` Hashed_pw *[]byte `json:"hashedPw"` Is_admin *int `json:"isAdmin"` Created_at time.Time `json:"createdAt"` Updated_at time.Time `json:"updatedAt"` }
used for existings users
type Vehicle ¶
type Vehicle struct { // meta data ID int64 `json:"id"` Name string `json:"name"` Description *string `json:"description"` Type *string `json:"type"` Is_metric *int `json:"isMetric"` // vehicle data Vin *string `json:"vin"` Year *int64 `json:"year"` Make *string `json:"make"` Model *string `json:"model"` Trim *string `json:"trim"` // life data Odometer *int64 `json:"odometer"` // ownership User int64 `json:"user"` // times Created_at time.Time `json:"createdAt"` Updated_at time.Time `json:"updatedAt"` }
Click to show internal directories.
Click to hide internal directories.