context

package
v0.0.0-...-fd6c280 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheName           ctxKey = "CACHE_NAME"
	RequestCacheControl ctxKey = "REQUEST_CACHE_CONTROL"
)
View Source
const (
	GraphQL           ctxKey = "GRAPHQL"
	HashBody          ctxKey = "HASH_BODY"
	IsMutationRequest ctxKey = "IS_MUTATION_REQUEST"
)
View Source
const (
	Key            ctxKey = "CACHE_KEY"
	DisplayableKey ctxKey = "DISPLAYABLE_KEY"
	IgnoredHeaders ctxKey = "IGNORE_HEADERS"
)
View Source
const (
	TimeoutCache  ctxKey = "TIMEOUT_CACHE"
	TimeoutCancel ctxKey = "TIMEOUT_CANCEL"
)
View Source
const CacheControlCtx ctxKey = "CACHE-CONTROL-CTX"
View Source
const SupportedMethod ctxKey = "SUPPORTED_METHOD"

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	CacheName ctx
	GraphQL   ctx
	Key       ctx
	Method    ctx
	Timeout   ctx
}

func GetContext

func GetContext() *Context

func (*Context) Init

func (*Context) SetBaseContext

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

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