Documentation ¶
Index ¶
- func NewMongoAuthenticationRepository(ds datasource.MongoDataSource) authentication.AuthenticationManageRepository
- func NewUserInfoRepository(ds datasource.MongoDataSource) authentication.UserInfoRepository
- type JSONAuthenticationRepositorydeprecated
- func (jar *JSONAuthenticationRepository) AddUser(username, password string) (authentication.User, error)
- func (jar *JSONAuthenticationRepository) Authenticate(username string, password string) (string, error)
- func (jar *JSONAuthenticationRepository) DeleteUser(userID string) error
- func (jar *JSONAuthenticationRepository) GetUser(username string) (authentication.User, bool)
- func (jar *JSONAuthenticationRepository) RepoImplName() scene.ImplName
- func (jar *JSONAuthenticationRepository) Status() error
- func (jar *JSONAuthenticationRepository) UpdateUser(user authentication.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMongoAuthenticationRepository ¶
func NewMongoAuthenticationRepository(ds datasource.MongoDataSource) authentication.AuthenticationManageRepository
func NewUserInfoRepository ¶
func NewUserInfoRepository(ds datasource.MongoDataSource) authentication.UserInfoRepository
Types ¶
type JSONAuthenticationRepository
deprecated
type JSONAuthenticationRepository struct {
// contains filtered or unexported fields
}
Deprecated: use mongo one instead
func (*JSONAuthenticationRepository) AddUser ¶
func (jar *JSONAuthenticationRepository) AddUser(username, password string) (authentication.User, error)
func (*JSONAuthenticationRepository) Authenticate ¶
func (jar *JSONAuthenticationRepository) Authenticate(username string, password string) (string, error)
func (*JSONAuthenticationRepository) DeleteUser ¶
func (jar *JSONAuthenticationRepository) DeleteUser(userID string) error
func (*JSONAuthenticationRepository) GetUser ¶
func (jar *JSONAuthenticationRepository) GetUser(username string) (authentication.User, bool)
func (*JSONAuthenticationRepository) RepoImplName ¶
func (jar *JSONAuthenticationRepository) RepoImplName() scene.ImplName
func (*JSONAuthenticationRepository) Status ¶
func (jar *JSONAuthenticationRepository) Status() error
func (*JSONAuthenticationRepository) UpdateUser ¶
func (jar *JSONAuthenticationRepository) UpdateUser(user authentication.User) error
Click to show internal directories.
Click to hide internal directories.