Versions in this module Expand all Collapse all v0 v0.4.0 Nov 3, 2021 Changes in this version + type Category4094953247View struct + ID int + Name string + func NewCategory4094953247View(e *ent.Category) *Category4094953247View + func (v *Category4094953247View) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v Category4094953247View) MarshalEasyJSON(w *jwriter.Writer) + type Category4094953247Views []*Category4094953247View + func NewCategory4094953247Views(es []*ent.Category) Category4094953247Views + func (v *Category4094953247Views) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v Category4094953247Views) MarshalEasyJSON(w *jwriter.Writer) + type CategoryCreateRequest struct + Name *string + func (v *CategoryCreateRequest) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v CategoryCreateRequest) MarshalEasyJSON(w *jwriter.Writer) + type CategoryHandler struct + func NewCategoryHandler(c *ent.Client, l *zap.Logger) *CategoryHandler + func (h *CategoryHandler) List(w http.ResponseWriter, r *http.Request) + func (h *CategoryHandler) MountCreateRoute(r chi.Router) *CategoryHandler + func (h *CategoryHandler) MountDeleteRoute(r chi.Router) *CategoryHandler + func (h *CategoryHandler) MountListRoute(r chi.Router) *CategoryHandler + func (h *CategoryHandler) MountReadRoute(r chi.Router) *CategoryHandler + func (h *CategoryHandler) MountRoutes(r chi.Router) + func (h *CategoryHandler) MountUpdateRoute(r chi.Router) *CategoryHandler + func (h *CategoryHandler) Read(w http.ResponseWriter, r *http.Request) + func (h CategoryHandler) Create(w http.ResponseWriter, r *http.Request) + func (h CategoryHandler) Delete(w http.ResponseWriter, r *http.Request) + func (h CategoryHandler) Update(w http.ResponseWriter, r *http.Request) + type CategoryUpdateRequest struct + Name *string + func (v *CategoryUpdateRequest) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v CategoryUpdateRequest) MarshalEasyJSON(w *jwriter.Writer) + type Equipment3958372643View struct + Condition string + CreateTime time.Time + ID int + Name string + UpdateTime time.Time + func NewEquipment3958372643View(e *ent.Equipment) *Equipment3958372643View + func (v *Equipment3958372643View) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v Equipment3958372643View) MarshalEasyJSON(w *jwriter.Writer) + type Equipment3958372643Views []*Equipment3958372643View + func NewEquipment3958372643Views(es []*ent.Equipment) Equipment3958372643Views + func (v *Equipment3958372643Views) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v Equipment3958372643Views) MarshalEasyJSON(w *jwriter.Writer) type EquipmentUpdateRequest + CreateTime *time.Time + type Vehicle2530256765View struct + Active bool + Condition string + CreateTime time.Time + ID int + Make string + Miles int64 + Model string + Mpg int64 + Owner string + UpdateTime time.Time + Year string + func NewVehicle2530256765View(e *ent.Vehicle) *Vehicle2530256765View + func (v *Vehicle2530256765View) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v Vehicle2530256765View) MarshalEasyJSON(w *jwriter.Writer) + type Vehicle2530256765Views []*Vehicle2530256765View + func NewVehicle2530256765Views(es []*ent.Vehicle) Vehicle2530256765Views + func (v *Vehicle2530256765Views) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v Vehicle2530256765Views) MarshalEasyJSON(w *jwriter.Writer) type VehicleUpdateRequest + CreateTime *time.Time v0.3.0 Nov 3, 2021 Changes in this version + func BadRequest(w http.ResponseWriter, msg interface{}) (int, error) + func Conflict(w http.ResponseWriter, msg interface{}) (int, error) + func Forbidden(w http.ResponseWriter, msg interface{}) (int, error) + func InternalServerError(w http.ResponseWriter, msg interface{}) (int, error) + func MountRoutes(c *ent.Client, l *zap.Logger, r chi.Router) + func NewHandler(c *ent.Client, l *zap.Logger) chi.Router + func NotFound(w http.ResponseWriter, msg interface{}) (int, error) + func Unauthorized(w http.ResponseWriter, msg interface{}) (int, error) + type Equipment2075188150View struct + Condition equipment.Condition + CreateTime time.Time + ID int64 + Name string + Tags []string + UpdateTime time.Time + func NewEquipment2075188150View(e *ent.Equipment) *Equipment2075188150View + func (v *Equipment2075188150View) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v Equipment2075188150View) MarshalEasyJSON(w *jwriter.Writer) + type Equipment2075188150Views []*Equipment2075188150View + func NewEquipment2075188150Views(es []*ent.Equipment) Equipment2075188150Views + func (v *Equipment2075188150Views) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v Equipment2075188150Views) MarshalEasyJSON(w *jwriter.Writer) + type EquipmentCreateRequest struct + Condition *equipment.Condition + CreateTime *time.Time + Name *string + Tags *[]string + UpdateTime *time.Time + func (v *EquipmentCreateRequest) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v EquipmentCreateRequest) MarshalEasyJSON(w *jwriter.Writer) + type EquipmentHandler struct + func NewEquipmentHandler(c *ent.Client, l *zap.Logger) *EquipmentHandler + func (h *EquipmentHandler) List(w http.ResponseWriter, r *http.Request) + func (h *EquipmentHandler) MountCreateRoute(r chi.Router) *EquipmentHandler + func (h *EquipmentHandler) MountDeleteRoute(r chi.Router) *EquipmentHandler + func (h *EquipmentHandler) MountListRoute(r chi.Router) *EquipmentHandler + func (h *EquipmentHandler) MountReadRoute(r chi.Router) *EquipmentHandler + func (h *EquipmentHandler) MountRoutes(r chi.Router) + func (h *EquipmentHandler) MountUpdateRoute(r chi.Router) *EquipmentHandler + func (h *EquipmentHandler) Read(w http.ResponseWriter, r *http.Request) + func (h EquipmentHandler) Create(w http.ResponseWriter, r *http.Request) + func (h EquipmentHandler) Delete(w http.ResponseWriter, r *http.Request) + func (h EquipmentHandler) Update(w http.ResponseWriter, r *http.Request) + type EquipmentUpdateRequest struct + Condition *equipment.Condition + Name *string + Tags *[]string + UpdateTime *time.Time + func (v *EquipmentUpdateRequest) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v EquipmentUpdateRequest) MarshalEasyJSON(w *jwriter.Writer) + type ErrResponse struct + Code int + Errors interface{} + Status string + func (e ErrResponse) MarshalToHTTPResponseWriter(w http.ResponseWriter) (int, error) + func (v *ErrResponse) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v ErrResponse) MarshalEasyJSON(w *jwriter.Writer) + type Vehicle2848838632View struct + Active bool + Condition vehicle.Condition + CreateTime time.Time + ID int64 + Make string + Miles int64 + Model string + Mpg int64 + Owner string + Tags []string + UpdateTime time.Time + Year string + func NewVehicle2848838632View(e *ent.Vehicle) *Vehicle2848838632View + func (v *Vehicle2848838632View) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v Vehicle2848838632View) MarshalEasyJSON(w *jwriter.Writer) + type Vehicle2848838632Views []*Vehicle2848838632View + func NewVehicle2848838632Views(es []*ent.Vehicle) Vehicle2848838632Views + func (v *Vehicle2848838632Views) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v Vehicle2848838632Views) MarshalEasyJSON(w *jwriter.Writer) + type VehicleCreateRequest struct + Active *bool + Condition *vehicle.Condition + CreateTime *time.Time + Make *string + Miles *int64 + Model *string + Mpg *int64 + Owner *string + Tags *[]string + UpdateTime *time.Time + Year *string + func (v *VehicleCreateRequest) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v VehicleCreateRequest) MarshalEasyJSON(w *jwriter.Writer) + type VehicleHandler struct + func NewVehicleHandler(c *ent.Client, l *zap.Logger) *VehicleHandler + func (h *VehicleHandler) List(w http.ResponseWriter, r *http.Request) + func (h *VehicleHandler) MountCreateRoute(r chi.Router) *VehicleHandler + func (h *VehicleHandler) MountDeleteRoute(r chi.Router) *VehicleHandler + func (h *VehicleHandler) MountListRoute(r chi.Router) *VehicleHandler + func (h *VehicleHandler) MountReadRoute(r chi.Router) *VehicleHandler + func (h *VehicleHandler) MountRoutes(r chi.Router) + func (h *VehicleHandler) MountUpdateRoute(r chi.Router) *VehicleHandler + func (h *VehicleHandler) Read(w http.ResponseWriter, r *http.Request) + func (h VehicleHandler) Create(w http.ResponseWriter, r *http.Request) + func (h VehicleHandler) Delete(w http.ResponseWriter, r *http.Request) + func (h VehicleHandler) Update(w http.ResponseWriter, r *http.Request) + type VehicleUpdateRequest struct + Active *bool + Condition *vehicle.Condition + Make *string + Miles *int64 + Model *string + Mpg *int64 + Owner *string + Tags *[]string + UpdateTime *time.Time + Year *string + func (v *VehicleUpdateRequest) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v VehicleUpdateRequest) MarshalEasyJSON(w *jwriter.Writer)