Documentation ¶
Index ¶
- func Ping(client *mongo.Client) bool
- type Client
- type Namespace
- type RegisterTokenCollection
- type UserCollection
- func (self UserCollection) DeleteUser(uuid string) bool
- func (self UserCollection) ExistsId(userId string) bool
- func (self UserCollection) GetUserInfo(uuid string) (UserInfo, error)
- func (self UserCollection) GetUserUuid(userId string) (string, error)
- func (self UserCollection) Login(userId, password string) bool
- func (self UserCollection) NewUser(userId, password, nickname, email string) (string, error)
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Disconnect ¶
func (*Client) RegisterTokenCollection ¶ added in v1.1.4
func (self *Client) RegisterTokenCollection() *RegisterTokenCollection
func (*Client) UserCollection ¶ added in v1.1.4
func (self *Client) UserCollection() *UserCollection
type Namespace ¶ added in v1.1.8
type Namespace struct {
// contains filtered or unexported fields
}
func (Namespace) CreateNamespace ¶ added in v1.1.8
func (Namespace) DeleteNamespace ¶ added in v1.1.8
type RegisterTokenCollection ¶ added in v1.1.4
type RegisterTokenCollection struct {
// contains filtered or unexported fields
}
func (*RegisterTokenCollection) CreateToken ¶ added in v1.1.4
func (self *RegisterTokenCollection) CreateToken(duration int32) string
duration, Unit : Seconds
func (*RegisterTokenCollection) ExistsToken ¶ added in v1.1.4
func (self *RegisterTokenCollection) ExistsToken(token string) (bool, error)
성공 유무와, iat, exp, dur 관련 실패 데이터
func (*RegisterTokenCollection) TokenCount ¶ added in v1.1.4
func (self *RegisterTokenCollection) TokenCount() int64
type UserCollection ¶
type UserCollection struct {
// contains filtered or unexported fields
}
func (UserCollection) DeleteUser ¶
func (self UserCollection) DeleteUser(uuid string) bool
func (UserCollection) ExistsId ¶
func (self UserCollection) ExistsId(userId string) bool
func (UserCollection) GetUserInfo ¶ added in v1.1.8
func (self UserCollection) GetUserInfo(uuid string) (UserInfo, error)
func (UserCollection) GetUserUuid ¶
func (self UserCollection) GetUserUuid(userId string) (string, error)
func (UserCollection) Login ¶
func (self UserCollection) Login(userId, password string) bool
Click to show internal directories.
Click to hide internal directories.