middleware

package
v0.0.0-...-8e2f611 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAppID

func ParseAppID(
	c martini.Context,
	params martini.Params,
	res http.ResponseWriter,
	logger zerolog.Logger,
)

func WithFiveMinuteTimeout

func WithFiveMinuteTimeout(c martini.Context)

WithFiveMinuteTimout adds a five minute timeout context to the request. it explicitly ignores the context of the http request. we do not want to stop the restarting of a container when a request cancels.

Types

type TimeoutContext

type TimeoutContext interface {
	context.Context
	MartiniContext() martini.Context
}

Jump to

Keyboard shortcuts

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