Documentation ¶
Index ¶
- Variables
- type Auth
- func (y *Auth) Create(u AuthCreateRequest) (uid string, devm string, id int, err error)
- func (y *Auth) EnsureSingleSession(id int)
- func (y *Auth) FindAll(page, limit int) (res []AuthResponse, err error)
- func (y *Auth) FindById(id int) (res AuthResponse, err error)
- func (y *Auth) FindByToken(token string) (res AuthAndUserResponse, err error)
- func (y *Auth) FindByUserId(id int) (output *AuthFindStruct, err error)
- func (y *Auth) FindByUserIdAndActive(id int) (output []AuthResponse, err error)
- func (y *Auth) FindByUserIdAndActiveWithUserData(id int) (output *AuthFindStruct, err error)
- func (y *Auth) UpdateStatus(id int, status bool) (err error)
- type AuthAndUserResponse
- type AuthCreateRequest
- type AuthFindStruct
- type AuthResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EXP_PATTERN = time.Hour
)
Functions ¶
This section is empty.
Types ¶
type Auth ¶
func (*Auth) EnsureSingleSession ¶
func (*Auth) FindByToken ¶
func (y *Auth) FindByToken(token string) (res AuthAndUserResponse, err error)
func (*Auth) FindByUserId ¶
func (y *Auth) FindByUserId(id int) (output *AuthFindStruct, err error)
func (*Auth) FindByUserIdAndActive ¶
func (y *Auth) FindByUserIdAndActive(id int) (output []AuthResponse, err error)
func (*Auth) FindByUserIdAndActiveWithUserData ¶
func (y *Auth) FindByUserIdAndActiveWithUserData(id int) (output *AuthFindStruct, err error)
type AuthAndUserResponse ¶
type AuthCreateRequest ¶
type AuthFindStruct ¶
type AuthFindStruct struct {
// contains filtered or unexported fields
}
func (*AuthFindStruct) First ¶
func (y *AuthFindStruct) First() AuthAndUserResponse
func (*AuthFindStruct) Get ¶
func (y *AuthFindStruct) Get() []AuthAndUserResponse
func (*AuthFindStruct) Last ¶
func (y *AuthFindStruct) Last() AuthAndUserResponse
Click to show internal directories.
Click to hide internal directories.