middleware

package
v0.0.0-...-4e2c5da Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheInterceptor

type CacheInterceptor struct {
	// contains filtered or unexported fields
}

func NewCacheInterceptor

func NewCacheInterceptor(c ports.Cacher, l ports.Logger, ttl time.Duration) CacheInterceptor

func (*CacheInterceptor) InterceptHandler

func (ch *CacheInterceptor) InterceptHandler(next http.Handler) http.Handler

type ProxyResponseWriter

type ProxyResponseWriter struct {
	http.ResponseWriter
	StatusCode int
	// contains filtered or unexported fields
}

func NewProxyResponseWriter

func NewProxyResponseWriter(w http.ResponseWriter) *ProxyResponseWriter

func (*ProxyResponseWriter) GetLocation

func (pw *ProxyResponseWriter) GetLocation() string

func (*ProxyResponseWriter) Write

func (pw *ProxyResponseWriter) Write(data []byte) (int, error)

func (*ProxyResponseWriter) WriteHeader

func (pw *ProxyResponseWriter) WriteHeader(code int)

Proxy for getting status code of writer

Jump to

Keyboard shortcuts

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