security

package
v0.0.0-...-4a5e4cf Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserID

func GetUserID(ctx context.Context) int64

Types

type AuthError

type AuthError struct {
	generated.Unauthorized
	// contains filtered or unexported fields
}

func (*AuthError) Error

func (ae *AuthError) Error() string

type Handler

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

func New

func New(db store.Database) *Handler

func (*Handler) HandleCookieAuth

func (sh *Handler) HandleCookieAuth(ctx context.Context, _ string, t generated.CookieAuth) (context.Context, error)

Jump to

Keyboard shortcuts

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