package
0.0.0-20240607130558-ba9903a3815e
Repository: https://github.com/omniboost/oauth-proxy.git
Documentation: pkg.go.dev
# Functions
Errorf logs an error message using the package error logger.
Logf logs a message using the package logger.
NewTime creates a time.
OauthTokenByAppClientIDClientSecretOriginalRefreshToken retrieves a row from 'oauth_tokens' as a [OauthToken].
OauthTokenByAppClientIDClientSecretRefreshToken retrieves a row from 'oauth_tokens' as a [OauthToken].
OauthTokenByAppRefreshToken retrieves a row from 'oauth_tokens' as a [OauthToken].
OauthTokenByID retrieves a row from 'oauth_tokens' as a [OauthToken].
OauthTokensByAppAccessToken retrieves a row from 'oauth_tokens' as a [OauthToken].
OauthTokensByAppOriginalRefreshToken retrieves a row from 'oauth_tokens' as a [OauthToken].
SetErrorLogger sets the package error logger.
SetLogger sets the package logger.
TokenRequestByID retrieves a row from 'token_requests' as a [TokenRequest].
# Constants
ErrAlreadyExists is the already exists error.
ErrDoesNotExist is the does not exist error.
ErrMarkedForDeletion is the marked for deletion error.
# Variables
TimestampFormats are the timestamp formats used by SQLite3 database drivers to store a time.Time in SQLite3.
XOLog provides the log func used by generated queries.
# Structs
ErrInsertFailed is the insert failed error.
ErrUpdateFailed is the update failed error.
ErrUpsertFailed is the upsert failed error.
OauthToken represents a row from 'oauth_tokens'.
Time is a SQLite3 Time that scans for the various timestamps values used by SQLite3 database drivers to store time.Time values.
TokenRequest represents a row from 'token_requests'.
# Interfaces
DB is the common interface for database operations that can be used with types from schema 'production.sqlite3'.
ScannerValuer is the common interface for types that implement both the database/sql.Scanner and sql/driver.Valuer interfaces.
XODB is the common interface for database operations that can be used with types from schema ''.
# Type aliases
ErrInvalidTime is the invalid Time error.
Error is an error.
Slice is a slice of ScannerValuers.
StringSlice is a slice of strings.