endpoints

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NO_AUTH_HEADER            = status.Errorf(codes.InvalidArgument, "No authheader provided")
	PERMISSION_DENIED         = status.Errorf(codes.PermissionDenied, "Permission Denied")
	INTERNAL_ERROR            = status.Errorf(codes.Internal, "Unkonwn Internal failure")
	POSTGRES_CONNECTION_ERROR = status.Errorf(codes.Internal, "Cannot connect to postgres")
)

Functions

func HandleTest

func HandleTest(ctx context.Context) (*authmaster.TestAuthResponse, error)

func Login

currently we have a race on checking the password and making a new token. This is fine for now since user data is completely immutable, but in the future if we want to support users changing their passwords, we'll have to fix this.

Types

This section is empty.

Jump to

Keyboard shortcuts

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