Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InvalidApiKeyErr = errors.New("token is not a valid neosync api key") ApiKeyExpiredErr = nucleuserrors.NewUnauthenticated("token is expired") )
Functions ¶
This section is empty.
Types ¶
type Queries ¶
type Queries interface {
GetAccountApiKeyByKeyValue(ctx context.Context, db db_queries.DBTX, apiKey string) (db_queries.NeosyncApiAccountApiKey, error)
}
type TokenContextData ¶
type TokenContextData struct { RawToken string ApiKey *db_queries.NeosyncApiAccountApiKey ApiKeyType apikey.ApiKeyType }
func GetTokenDataFromCtx ¶
func GetTokenDataFromCtx(ctx context.Context) (*TokenContextData, error)
type TokenContextKey ¶
type TokenContextKey struct{}
Click to show internal directories.
Click to hide internal directories.