package
Version:
v0.0.0-...-1ab822e
Opens a new window with list of versions in this module.
Published: Jan 21, 2023
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
ERR_NOT_AUTHORIZED = "ERR_NOT_AUTHORIZED"
)
func WithUser(f func(echo.Context, *User) error) func(echo.Context) error
type HttpError struct {
Code int `json:"code,omitempty"`
Reason string `json:"reason"`
Details string `json:"details"`
}
type Photo struct {
gorm.Model
Name string `json:"name"`
UserID uint `json:"user_id"`
CID string `json:"cid" gorm:"column:cid"`
}
type User struct {
gorm.Model
Handle string `json:"handle" gorm:"unique"`
ApiKey string `json:"apikey" gorm:"column:apikey"`
Photos []Photo `json:photos`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.