context

package
v0.0.0-...-8a5cc0a Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWTKey = "http_jwt_key"

JWTKey is a context key for storing token

Functions

This section is empty.

Types

type KeyString

type KeyString string

KeyString should be used when setting and fetching context values

type Service

type Service struct{}

Service represents context service

func (*Service) GetUser

func (s *Service) GetUser(c context.Context) *twisk.AuthUser

GetUser fetches auth user from context

Jump to

Keyboard shortcuts

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