context

package
v1.6.13 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 7 Imported by: 11

Documentation

Index

Constants

View Source
const (
	GraphQL           ctxKey = "GRAPHQL"
	HashBody          ctxKey = "HASH_BODY"
	IsMutationRequest ctxKey = "IS_MUTATION_REQUEST"
)
View Source
const (
	Key ctxKey = "CACHE_KEY"
)
View Source
const SupportedMethod ctxKey = "SUPPORTED_METHOD"

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	GraphQL ctx
	Key     ctx
	Method  ctx
}

func GetContext

func GetContext() *Context

func (*Context) Init

func (*Context) SetContext

func (c *Context) SetContext(req *http.Request) *http.Request

Jump to

Keyboard shortcuts

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