auth

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentSub

func CurrentSub(ctx context.Context) (sub string, ok bool)

CurrentSub retrieves the current sub from context.

func CurrentUserID

func CurrentUserID(ctx context.Context) uint

CurrentUserID retrieves the current user_id from context. Only works when sub is an integer.

func Func

func Func(ctx context.Context) (context.Context, error)

Func uses the user-specified auth function.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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