apikey

package
v0.0.0-...-2d2b994 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(ctx context.Context, q db.Querier, userID uuid.UUID, plain Plaintext) (*db.ApiKey, error)

Types

type Plaintext

type Plaintext struct {
	// contains filtered or unexported fields
}

func Create

func Create(ctx context.Context, q db.Querier, name string, userID uuid.UUID) (*Plaintext, *db.ApiKey, error)

func NewPlaintext

func NewPlaintext(s string) (Plaintext, error)

func (Plaintext) Hash

func (p Plaintext) Hash() []byte

func (Plaintext) String

func (p Plaintext) String() string

Jump to

Keyboard shortcuts

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