queries

package
v0.0.0-...-11c1434 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 (edb *EdgeDBQueries) AddNewToken(accountId edgedb.UUID, value, variant string, expiresAt time.Time, scope []string) error

func (*EdgeDBQueries) AddNewTokenPair

func (edb *EdgeDBQueries) AddNewTokenPair(accountId edgedb.UUID, accessTokenValue, refreshTokenValue string, accessTokenExpiresAt, refreshTokenExpiresAt time.Time, scope []string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL