Documentation
¶
Overview ¶
Package classification of Auth API
Documentation for Auth API
Schemes: http BasePath: / Version: 1.0.0 Consumes: - application/json Produces: - application/json
swagger:meta
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminMiddleware ¶
func AdminMiddleware(maker token.PasetoMaker) gin.HandlerFunc
func AuthMiddleware ¶
func AuthMiddleware(maker token.PasetoMaker) gin.HandlerFunc
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(address string, db *gorm.DB, bc *clients.BorrowsClient, lc *clients.LikesClient, nc *clients.NotificationsClient) (*Server, error)
type UsersResponseWrap ¶
type UsersResponseWrap struct {
// contains filtered or unexported fields
}
A list of user data is returned in the response swagger:response usersResponse
Click to show internal directories.
Click to hide internal directories.