auth

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("authorization info not found")
)

Functions

This section is empty.

Types

type User

type User struct {
	ID    string `json:"id"`
	Role  string `json:"role"`
	Token string `json:"token"`
}

func GetUser

func GetUser(ctx context.Context) (User, error)

Jump to

Keyboard shortcuts

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