Documentation ¶
Index ¶
- Constants
- Variables
- type Response
- type Router
- func (r *Router) Authenticate(ctx *gin.Context)
- func (r *Router) DownloadPicture(ctx *gin.Context)
- func (r *Router) Login(ctx *gin.Context)
- func (r *Router) Logout(ctx *gin.Context)
- func (r *Router) Register(ctx *gin.Context)
- func (r *Router) SendMessage(ctx *gin.Context)
- func (r *Router) Users(ctx *gin.Context)
Constants ¶
View Source
const ( RootRoute = "/" APIRoute = "/api" RegisterRoute = "/register" LoginRoute = "/login" LogoutRoute = "/logout" UsersRoute = "/users" PictureRoute = "/picture/" PictureRouteWithParams = PictureRoute + ":" + UUIDParam MessageRoute = "/message" )
View Source
const (
SessionVariable = "SESSION"
)
View Source
const (
UUIDParam = "uuid"
)
Variables ¶
View Source
var ( SucceedResponse = Response{Result: "succeed"} )
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct { *controller.Controller *gin.Engine }
func New ¶
func New(c *controller.Controller, e *gin.Engine) *Router
func (*Router) Authenticate ¶
func (*Router) DownloadPicture ¶ added in v0.0.5
func (*Router) SendMessage ¶
Click to show internal directories.
Click to hide internal directories.