Documentation
¶
Index ¶
Constants ¶
View Source
const ( VERSION = "v1" PUBLIC_GROUP = "auth" )
View Source
const DEFAULT_LIFETIME = 730 * time.Hour
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthTextResult ¶
type AuthTextResult struct { Text string `json:"text"` SignInData SignInBody `json:"data"` }
type SignInBody ¶
type SignInResult ¶
type SignInResult struct {
Token string `json:"token"`
}
type UserApi ¶
type UserApi struct {
// contains filtered or unexported fields
}
func NewUserAPI ¶
func NewUserAPI(maker *jwtmaker.JWTMaker, cache cache.ICache, resolver resolver.IResolver, repository repository.UserRepository) UserApi
func (UserApi) GetAuthText ¶
Click to show internal directories.
Click to hide internal directories.