Documentation ¶
Index ¶
- type RedirectURL
- type User
- type Users
- func (u Users) Delete(userID int64) error
- func (u Users) Get(userID int64) (*users.User, error)
- func (u Users) GetAll() ([]users.User, error)
- func (u Users) GetByClientID(clientID string) (*users.User, error)
- func (u Users) GetByEmail(email string) (*users.User, error)
- func (u Users) GetRedirectURLs(userID int64) ([]users.RedirectURL, error)
- func (u Users) Save(usr users.User) error
- func (u Users) UpdateCurrentSecretKey(clientID, secretKey string) error
- func (u Users) UpdateToken(clientID, token, refreshToken string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedirectURL ¶
type RedirectURL struct { ID primitive.ObjectID `bson:"_id,omitempty"` URL string `bson:"url,omitempty"` Description string `bson:"description,omitempty"` CreatedAt string `bson:"created_at,omitempty"` }
RedirectURL of the user app
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id,omitempty"` Email string `bson:"email,omitempty"` Password string `bson:"password,omitempty"` AppName string `bson:"app_name,omitempty"` ClientID string `bson:"client_id,omitempty"` CurrentSecretKey string `bson:"current_secret_key,omitempty"` Token string `bson:"token,omitempty"` RefreshToken string `bson:"refresh_token,omitempty"` RedirectURLs []RedirectURL `bson:"redirect_urls,omitempty"` CreatedAt string `bson:"created_at,omitempty"` }
User db info
type Users ¶
type Users struct{}
Users implements
func (Users) GetByClientID ¶
GetByClientID doc ...
func (Users) GetByEmail ¶
GetByEmail doc ...
func (Users) GetRedirectURLs ¶
func (u Users) GetRedirectURLs(userID int64) ([]users.RedirectURL, error)
GetRedirectURLs ...
func (Users) UpdateCurrentSecretKey ¶
UpdateCurrentSecretKey doc
func (Users) UpdateToken ¶
UpdateToken doc ...
Click to show internal directories.
Click to hide internal directories.