context

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContextLogger added in v0.0.2

func GetContextLogger(r *http.Request) log.Logger

Types

type ContextLoggerKeyType

type ContextLoggerKeyType string
const ContextLoggerKey ContextLoggerKeyType = "ContextLogger"

type RequestContext

type RequestContext struct {
	RequestID               string
	Logger                  log.Logger
	BucketName              string
	ObjectName              string
	BucketInfo              *types.Bucket
	ObjectInfo              *types.Object
	Lifecycle               *lifecycle.Lifecycle
	Brand                   brand.Brand
	AuthType                signature.AuthType
	IsBucketDomain          bool
	IsObjectForbidOverwrite bool
	Body                    io.ReadCloser
	FormValues              map[string]string
	VersionId               string
	Mutex                   *redislock.Lock
}

func GetRequestContext

func GetRequestContext(r *http.Request) RequestContext

type RequestContextKeyType

type RequestContextKeyType string
const RequestContextKey RequestContextKeyType = "RequestContext"

type RequestIdKeyType

type RequestIdKeyType string
const RequestIdKey RequestIdKeyType = "RequestID"

Jump to

Keyboard shortcuts

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