Documentation ¶
Index ¶
- func Create(ctx context.Context, input apicontracts.ApiKey) error
- func Delete(ctx context.Context, ID string) (bool, apicontracts.ApiKey, error)
- func GetByFilter(ctx context.Context, filter *apicontracts.Filter) ([]apicontracts.ApiKey, int, error)
- func GetByHash(ctx context.Context, hashedapikey string) ([]apicontracts.ApiKey, error)
- func GetByIdentifier(ctx context.Context, identifier string) ([]apicontracts.ApiKey, error)
- func GetOwnByName(ctx context.Context, name string) (*apicontracts.ApiKey, error)
- func UpdateLastUsed(ctx context.Context, apikeyId string, identifier string) error
- func UpdateOwnByName(ctx context.Context, name string, hash string, expires time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetByFilter ¶
func GetByFilter(ctx context.Context, filter *apicontracts.Filter) ([]apicontracts.ApiKey, int, error)
func GetByIdentifier ¶
func GetOwnByName ¶
func UpdateLastUsed ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.