apikeyrepo

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, input apicontracts.ApiKey) error

func Delete

func Delete(ctx context.Context, ID string) (bool, apicontracts.ApiKey, error)

func GetByFilter

func GetByFilter(ctx context.Context, filter *apicontracts.Filter) ([]apicontracts.ApiKey, int, error)

func GetByHash

func GetByHash(ctx context.Context, hashedapikey string) ([]apicontracts.ApiKey, error)

func GetByIdentifier

func GetByIdentifier(ctx context.Context, identifier string) ([]apicontracts.ApiKey, error)

func GetOwnByName

func GetOwnByName(ctx context.Context, name string) (*apicontracts.ApiKey, error)

func UpdateLastUsed

func UpdateLastUsed(ctx context.Context, apikeyId string, identifier string) error

func UpdateOwnByName

func UpdateOwnByName(ctx context.Context, name string, hash string, expires time.Time) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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