Documentation
¶
Index ¶
- Constants
- Variables
- func GenerateInternalUserToken(userid string) (token string, err error)
- type Auth
- func (this *Auth) Ensure() (token AuthToken, err error)
- func (this *Auth) GenerateInternalUserToken(userid string) (token AuthToken, err error)
- func (this *Auth) GetUserById(id string) (user User, err error)
- func (this *Auth) GetUserToken(userid string) (token AuthToken, err error)
- func (this *Auth) UserExists(id string) (exists bool, err error)
- type AuthToken
- type OpenidToken
- type User
Constants ¶
View Source
const CacheExpiration = 600 * time.Second
Variables ¶
View Source
var ErrUserDoesNotExist = errors.New("user does not exist")
Functions ¶
func GenerateInternalUserToken ¶ added in v0.0.25
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func NewAuthWithoutCache ¶
func (*Auth) GenerateInternalUserToken ¶
func (*Auth) GetUserById ¶ added in v0.0.25
func (*Auth) GetUserToken ¶
type OpenidToken ¶
Click to show internal directories.
Click to hide internal directories.