handlers

package
v0.0.0-...-dd9aec0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogWrap

func LogWrap(logger lager.Logger, loggableHandlerFunc LoggableHandlerFunc) http.HandlerFunc

Types

type Health

type Health struct {
	DatabaseChecker databaseChecker
	ErrorResponse   errorResponse
}

func (*Health) ServeHTTP

func (h *Health) ServeHTTP(logger lager.Logger, w http.ResponseWriter, req *http.Request)

type LeasesAcquire

type LeasesAcquire struct {
	Marshaler     marshal.Marshaler
	Unmarshaler   marshal.Unmarshaler
	LeaseAcquirer leaseAcquirer
	ErrorResponse errorResponse
}

func (*LeasesAcquire) ServeHTTP

func (l *LeasesAcquire) ServeHTTP(logger lager.Logger, w http.ResponseWriter, req *http.Request)

type LeasesIndex

type LeasesIndex struct {
	Marshaler       marshal.Marshaler
	LeaseRepository leaseRepository
	ErrorResponse   errorResponse
}

func (*LeasesIndex) ServeHTTP

func (l *LeasesIndex) ServeHTTP(logger lager.Logger, w http.ResponseWriter, req *http.Request)

type LoggableHandlerFunc

type LoggableHandlerFunc func(logger lager.Logger, w http.ResponseWriter, r *http.Request)

type ReleaseLease

type ReleaseLease struct {
	Marshaler     marshal.Marshaler
	Unmarshaler   marshal.Unmarshaler
	LeaseReleaser leaseReleaser
	ErrorResponse errorResponse
}

func (*ReleaseLease) ServeHTTP

func (l *ReleaseLease) ServeHTTP(logger lager.Logger, w http.ResponseWriter, req *http.Request)

type RenewLease

type RenewLease struct {
	Unmarshaler   marshal.Unmarshaler
	LeaseRenewer  leaseRenewer
	ErrorResponse errorResponse
}

func (*RenewLease) ServeHTTP

func (l *RenewLease) ServeHTTP(logger lager.Logger, w http.ResponseWriter, req *http.Request)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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