Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(apiRouter *gin.RouterGroup, authRouter *gin.RouterGroup) Controller
func (*Controller) Routes ¶
func (controller *Controller) Routes()
Routes registers this controllers sub-routing in the main apiRouter. It returns a RouterGroup containing only the routes for the operations on the User model.
type Service ¶
type Service interface {
CreateUser(user User) (*User, error)
AuthenticateUser(login Login) (*User, error)
}
func InitService ¶
func InitService() Service
Click to show internal directories.
Click to hide internal directories.