context

package
v0.0.0-...-faa3d42 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 2 Imported by: 0

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) *easypay.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