auth

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxSetAuthInfo

func CtxSetAuthInfo(ctx context.Context, auth CtxInfo) context.Context

Types

type ApiKey

type ApiKey struct{}

func NewApiKey

func NewApiKey() *ApiKey

func (*ApiKey) Validate

func (a *ApiKey) Validate(
	ctx context.Context,
	key string,
	scheme *security.APIKeyScheme,
	db *store.Queries,
) (context.Context, error)

type CtxInfo

type CtxInfo struct {
	UserUUID string
	TeamUUID string
}

func CtxAuthInfo

func CtxAuthInfo(ctx context.Context) (auth CtxInfo)

Jump to

Keyboard shortcuts

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