Documentation
¶
Index ¶
- type Adapter
- func (a *Adapter) CreateAccount(acc *kuta.Account) error
- func (a *Adapter) CreateSession(session *kuta.Session) error
- func (a *Adapter) CreateUser(user *kuta.User) error
- func (a *Adapter) DeleteAccount(id string) error
- func (a *Adapter) DeleteExpiredSessions() (int, error)
- func (a *Adapter) DeleteSessionByHash(tokenHash string) error
- func (a *Adapter) DeleteSessionByID(id string) error
- func (a *Adapter) DeleteUser(id string) error
- func (a *Adapter) DeleteUserSessions(userID string) (int, error)
- func (a *Adapter) GetAccountByID(id string) (*kuta.Account, error)
- func (a *Adapter) GetAccountByUserAndProvider(userID, providerID string) ([]*kuta.Account, error)
- func (a *Adapter) GetSessionByHash(tokenHash string) (*kuta.Session, error)
- func (a *Adapter) GetSessionByID(id string) (*kuta.Session, error)
- func (a *Adapter) GetUserByEmail(email string) (*kuta.User, error)
- func (a *Adapter) GetUserByID(id string) (*kuta.User, error)
- func (a *Adapter) GetUserSessions(userID string) ([]*kuta.Session, error)
- func (a *Adapter) UpdateAccount(acc *kuta.Account) error
- func (a *Adapter) UpdateSession(session *kuta.Session) error
- func (a *Adapter) UpdateUser(user *kuta.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func (*Adapter) DeleteAccount ¶
func (*Adapter) DeleteExpiredSessions ¶
func (*Adapter) DeleteSessionByHash ¶
func (*Adapter) DeleteSessionByID ¶
func (*Adapter) DeleteUser ¶
func (*Adapter) DeleteUserSessions ¶
func (*Adapter) GetAccountByUserAndProvider ¶
func (*Adapter) GetSessionByHash ¶
func (*Adapter) GetUserSessions ¶
Click to show internal directories.
Click to hide internal directories.