auth

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

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoAcademicInContext = errors.New("no academic in context")

Functions

func AcademicFromCtx

func AcademicFromCtx(ctx context.Context) (course.Academic, error)

func MockAuthHTTPMiddleware

func MockAuthHTTPMiddleware(next http.Handler) http.Handler

func WithAcademicInCtx

func WithAcademicInCtx(ctx context.Context, academic course.Academic) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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