Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServer ¶
type HTTPServer struct {
Service *Service
}
func NewHTTPServer ¶
func NewHTTPServer(svc *Service) *HTTPServer
func (*HTTPServer) RouteTo ¶
func (h *HTTPServer) RouteTo(e *echo.Echo, auth echo.MiddlewareFunc)
type Model ¶
type Model struct { ID int `json:"id" db:"id"` UUID uuid.UUID `json:"uuid" db:"uuid"` Date string `json:"date" db:"date"` Mood int `json:"mood" db:"mood"` Sleep int `json:"sleep" db:"sleep"` Stress int `json:"stress" db:"stress"` Notes *string `json:"notes" db:"notes"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` CreatedAt time.Time `json:"created_at" db:"created_at"` DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"` }
Model holds the basic data structure for an entry
type Service ¶
func NewService ¶
Click to show internal directories.
Click to hide internal directories.