Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUserNameExist = errors.New("The user name already exists!")
)
Functions ¶
Types ¶
type AuthModule ¶
type AuthModule struct {
// contains filtered or unexported fields
}
func NewAuthModule ¶
func NewAuthModule(addr string) (*AuthModule, error)
func (*AuthModule) CheckOrCreateUser ¶
func (s *AuthModule) CheckOrCreateUser(userName string, password string) error
Click to show internal directories.
Click to hide internal directories.