context

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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
	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