Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderError ¶
func RenderError(statusCode int, msg string, w http.ResponseWriter)
Types ¶
type Plan ¶
type Plan struct { Id string `json:"id"` Name string `json:"name"` CreatorId string `json:"creator_id"` TraineeId string `json:"trainee_id"` }
Plan is the structure used for the serialization of training entity
func FromPlanModel ¶
type PlanSession ¶
type PlanSession struct { Id string `json:"id"` PlanId string `json:"plan_id"` From time.Time `json:"from"` To time.Time `json:"to"` Description string `json:"description"` Comments string `json:"comments"` }
func FromPlanSessionModel ¶
func FromPlanSessionModel(planSession *model.PlanSession) *PlanSession
type User ¶
type User struct { Id string `id:"json"` Login string `login:"json"` Email string `email:"json"` FirstName string `firstName:"json"` LastName string `lastName:"json"` }
User is the type used as a response to a sign-in or a login request
func FromUserModel ¶
FromUserModel create a user response from a model
Click to show internal directories.
Click to hide internal directories.