Documentation ¶
Index ¶
- Variables
- type Handler
- func (h *Handler) CreatePost(c echo.Context) (err error)
- func (h *Handler) CreateSave(c echo.Context) (err error)
- func (h *Handler) FetchAllSaves(c echo.Context) (err error)
- func (h *Handler) FetchPost(c echo.Context) (err error)
- func (h *Handler) FetchSave(c echo.Context) (err error)
- func (h *Handler) Follow(c echo.Context) (err error)
- func (h *Handler) HandleUpsert(saveData, owner string) map[string]bson.M
- func (h *Handler) InitUpdateSave(saveData []byte) bson.M
- func (h *Handler) InitUpsertIDMsg(saveData []byte) bson.M
- func (h *Handler) InitUpsertSave(id, name, owner string, saveData []byte) bson.M
- func (h *Handler) Login(c echo.Context) (err error)
- func (h *Handler) Signup(c echo.Context) (err error)
- func (h *Handler) UpdateSave(c echo.Context) (err error)
- func (h *Handler) UpsertSave(c echo.Context) (err error)
- type HandlerErr
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Key []byte
)
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
DB *mgo.Session
}
func (*Handler) HandleUpsert ¶
func (*Handler) InitUpsertSave ¶
type HandlerErr ¶
func NewErr ¶
func NewErr(msg string) *HandlerErr
Click to show internal directories.
Click to hide internal directories.