Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
Email string `json:"email,omitempty" xml:"Email,omitempty"`
Password string `json:"password,omitempty" xml:"Password,omitempty"`
Token string `json:"token,omitempty" xml:"Token,omitempty"`
Refresh string `json:"refresh,omitempty" xml:"Refresh,omitempty"`
}
Auth is a user model.
func (*Auth) RefreshToken ¶
RefreshToken returns new token and refresh tokens.
type Controller ¶
type Controller struct {
// inherit BaseController functionality (related to middleware)
*mw.BaseController
// controller dependencies
Config *config.Config `inject:"t"`
Users map[string]string `inject:"t"`
}
Controller is responsible for user AUTH operations.
func (*Controller) Init ¶
func (c *Controller) Init() error
Init user controller (TODO: add middleware for available methods).
Click to show internal directories.
Click to hide internal directories.