method
Store.CreateAPIKey
Public method Store.CreateAPIKey from github.com/riducms/ridu/adapters/postgres.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
key | store.AuthAPIKey | The key value. |
sessionTokenHash | string | The sessionTokenHash value. |
now | time.Time | The now value. |
Returns
The declared result.
errorFull signature
func (backend *Store) CreateAPIKey(
ctx context.Context,
key store.AuthAPIKey,
sessionTokenHash string,
now time.Time,
) errorRelated types
StoreA PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.
AuthAPIKeyA persisted API-key digest and safe metadata.