Documentation ¶
Index ¶
- type EdgeDBQueries
- func (edb *EdgeDBQueries) AddNewToken(accountId edgedb.UUID, value, variant string, expiresAt time.Time, ...) error
- func (edb *EdgeDBQueries) AddNewTokenPair(accountId edgedb.UUID, accessTokenValue, refreshTokenValue string, ...) error
- func (edb *EdgeDBQueries) CreateAccount(email, username, password string) (datatypes.Account, error)
- func (edb *EdgeDBQueries) CreateNewOAuth2AuthorizationCode(authorizationCode datatypes.OAuthAuthorizationCode) error
- func (edb *EdgeDBQueries) CreateNewOAuthClientApplication(oauthClient datatypes.OAuthClient) error
- func (edb *EdgeDBQueries) DeleteOAuth2AuthorizationCode(code string) error
- func (edb *EdgeDBQueries) DeleteOAuth2ClientApplication(clientId string) error
- func (edb *EdgeDBQueries) DeleteRefreshToken(id edgedb.UUID) error
- func (edb *EdgeDBQueries) DeleteTokens(ids []edgedb.UUID) error
- func (edb *EdgeDBQueries) DeleteTokensByValue(tokens []string) error
- func (edb *EdgeDBQueries) GetAccountById(id string) (datatypes.Account, error)
- func (edb *EdgeDBQueries) GetOAuth2AuthorizationCode(code string) (datatypes.OAuthAuthorizationCode, error)
- func (edb *EdgeDBQueries) GetOAuth2ClientApplication(clientID string) (datatypes.OAuthClient, error)
- func (edb *EdgeDBQueries) GetOAuth2ClientApplicationAndUserAccount(clientID string, accountID edgedb.UUID) (datatypes.OAuthClient, datatypes.Account, error)
- func (edb *EdgeDBQueries) GetPasswordByEmail(email string) (datatypes.Password, error)
- func (edb *EdgeDBQueries) GetRefreshToken(value string) (datatypes.Token, error)
- func (edb *EdgeDBQueries) GetToken(tokenValue string) (datatypes.Token, error)
- func (edb *EdgeDBQueries) IncrementFailedPasswordLoginAttempts(email string) error
- func (edb *EdgeDBQueries) ResetFailedPasswordLoginAttempts(email string) error
- func (edb *EdgeDBQueries) ResetOTP(accountId edgedb.UUID) error
- func (edb *EdgeDBQueries) SetOTPSecret(accountId edgedb.UUID, otpSecret string) error
- func (edb *EdgeDBQueries) SetOTPState(accountId edgedb.UUID, otpState string) error
- func (edb *EdgeDBQueries) UpdateOAuth2ClientApplicationKeyValue(updateRequestData datatypes.UpdateOAuth2ClientKeyValueRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EdgeDBQueries ¶
type EdgeDBQueries struct {
// contains filtered or unexported fields
}
func NewEdgeDBQueryImplementation ¶
func NewEdgeDBQueryImplementation(c *config.Config) *EdgeDBQueries
func (*EdgeDBQueries) AddNewToken ¶
func (*EdgeDBQueries) AddNewTokenPair ¶
func (*EdgeDBQueries) CreateAccount ¶
func (edb *EdgeDBQueries) CreateAccount(email, username, password string) (datatypes.Account, error)
func (*EdgeDBQueries) CreateNewOAuth2AuthorizationCode ¶
func (edb *EdgeDBQueries) CreateNewOAuth2AuthorizationCode(authorizationCode datatypes.OAuthAuthorizationCode) error
func (*EdgeDBQueries) CreateNewOAuthClientApplication ¶
func (edb *EdgeDBQueries) CreateNewOAuthClientApplication(oauthClient datatypes.OAuthClient) error
func (*EdgeDBQueries) DeleteOAuth2AuthorizationCode ¶
func (edb *EdgeDBQueries) DeleteOAuth2AuthorizationCode(code string) error
func (*EdgeDBQueries) DeleteOAuth2ClientApplication ¶
func (edb *EdgeDBQueries) DeleteOAuth2ClientApplication(clientId string) error
func (*EdgeDBQueries) DeleteRefreshToken ¶
func (edb *EdgeDBQueries) DeleteRefreshToken(id edgedb.UUID) error
func (*EdgeDBQueries) DeleteTokens ¶
func (edb *EdgeDBQueries) DeleteTokens(ids []edgedb.UUID) error
func (*EdgeDBQueries) DeleteTokensByValue ¶
func (edb *EdgeDBQueries) DeleteTokensByValue(tokens []string) error
func (*EdgeDBQueries) GetAccountById ¶
func (edb *EdgeDBQueries) GetAccountById(id string) (datatypes.Account, error)
func (*EdgeDBQueries) GetOAuth2AuthorizationCode ¶
func (edb *EdgeDBQueries) GetOAuth2AuthorizationCode(code string) (datatypes.OAuthAuthorizationCode, error)
func (*EdgeDBQueries) GetOAuth2ClientApplication ¶
func (edb *EdgeDBQueries) GetOAuth2ClientApplication(clientID string) (datatypes.OAuthClient, error)
func (*EdgeDBQueries) GetOAuth2ClientApplicationAndUserAccount ¶
func (edb *EdgeDBQueries) GetOAuth2ClientApplicationAndUserAccount(clientID string, accountID edgedb.UUID) (datatypes.OAuthClient, datatypes.Account, error)
func (*EdgeDBQueries) GetPasswordByEmail ¶
func (edb *EdgeDBQueries) GetPasswordByEmail(email string) (datatypes.Password, error)
func (*EdgeDBQueries) GetRefreshToken ¶
func (edb *EdgeDBQueries) GetRefreshToken(value string) (datatypes.Token, error)
func (*EdgeDBQueries) GetToken ¶
func (edb *EdgeDBQueries) GetToken(tokenValue string) (datatypes.Token, error)
func (*EdgeDBQueries) IncrementFailedPasswordLoginAttempts ¶
func (edb *EdgeDBQueries) IncrementFailedPasswordLoginAttempts(email string) error
func (*EdgeDBQueries) ResetFailedPasswordLoginAttempts ¶
func (edb *EdgeDBQueries) ResetFailedPasswordLoginAttempts(email string) error
func (*EdgeDBQueries) ResetOTP ¶
func (edb *EdgeDBQueries) ResetOTP(accountId edgedb.UUID) error
func (*EdgeDBQueries) SetOTPSecret ¶
func (edb *EdgeDBQueries) SetOTPSecret(accountId edgedb.UUID, otpSecret string) error
func (*EdgeDBQueries) SetOTPState ¶
func (edb *EdgeDBQueries) SetOTPState(accountId edgedb.UUID, otpState string) error
func (*EdgeDBQueries) UpdateOAuth2ClientApplicationKeyValue ¶
func (edb *EdgeDBQueries) UpdateOAuth2ClientApplicationKeyValue(updateRequestData datatypes.UpdateOAuth2ClientKeyValueRequest) error
Click to show internal directories.
Click to hide internal directories.