Documentation
¶
Index ¶
- func NewCachedAuthenticationService(base authentication.IAuthenticationService) authentication.IAuthenticationService
- type CachedAuthenticationService
- func (c *CachedAuthenticationService) AddUser(username, password string) (authentication.User, error)
- func (c *CachedAuthenticationService) Authenticate(username string, password string) (string, error)
- func (c *CachedAuthenticationService) AuthenticateByToken(token string) (string, error)
- func (c *CachedAuthenticationService) DeleteUser(userID string) error
- func (c *CachedAuthenticationService) HasUser(userID string) (bool, error)
- func (c *CachedAuthenticationService) ListUsers(offset, limit int64) (model.PaginationResult[authentication.User], error)
- func (c *CachedAuthenticationService) Setup() error
- func (c *CachedAuthenticationService) SrvImplName() scene.ImplName
- func (c *CachedAuthenticationService) UpdateUser(user authentication.User) error
- func (c *CachedAuthenticationService) UserByEmail(email string) (authentication.User, error)
- func (c *CachedAuthenticationService) UserById(userID string) (authentication.User, error)
- func (c *CachedAuthenticationService) UserByName(username string) (authentication.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCachedAuthenticationService ¶
func NewCachedAuthenticationService(base authentication.IAuthenticationService) authentication.IAuthenticationService
Types ¶
type CachedAuthenticationService ¶
type CachedAuthenticationService struct {
// contains filtered or unexported fields
}
func (*CachedAuthenticationService) AddUser ¶
func (c *CachedAuthenticationService) AddUser(username, password string) (authentication.User, error)
func (*CachedAuthenticationService) Authenticate ¶
func (c *CachedAuthenticationService) Authenticate(username string, password string) (string, error)
func (*CachedAuthenticationService) AuthenticateByToken ¶
func (c *CachedAuthenticationService) AuthenticateByToken(token string) (string, error)
func (*CachedAuthenticationService) DeleteUser ¶
func (c *CachedAuthenticationService) DeleteUser(userID string) error
func (*CachedAuthenticationService) HasUser ¶
func (c *CachedAuthenticationService) HasUser(userID string) (bool, error)
func (*CachedAuthenticationService) ListUsers ¶
func (c *CachedAuthenticationService) ListUsers(offset, limit int64) (model.PaginationResult[authentication.User], error)
func (*CachedAuthenticationService) Setup ¶
func (c *CachedAuthenticationService) Setup() error
func (*CachedAuthenticationService) SrvImplName ¶
func (c *CachedAuthenticationService) SrvImplName() scene.ImplName
func (*CachedAuthenticationService) UpdateUser ¶
func (c *CachedAuthenticationService) UpdateUser(user authentication.User) error
func (*CachedAuthenticationService) UserByEmail ¶
func (c *CachedAuthenticationService) UserByEmail(email string) (authentication.User, error)
func (*CachedAuthenticationService) UserById ¶
func (c *CachedAuthenticationService) UserById(userID string) (authentication.User, error)
func (*CachedAuthenticationService) UserByName ¶
func (c *CachedAuthenticationService) UserByName(username string) (authentication.User, error)
Click to show internal directories.
Click to hide internal directories.