handlers

package
v0.0.0-...-9ba6240 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Files

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

Files is a handler for reading and writing files

func NewFiles

func NewFiles(s files.Storage, l hclog.Logger) *Files

NewFiles creates a new File handler

func (*Files) UploadMultipart

func (f *Files) UploadMultipart(rw http.ResponseWriter, r *http.Request)

UploadMultipart something

func (*Files) UploadREST

func (f *Files) UploadREST(rw http.ResponseWriter, r *http.Request)

UploadREST implements the http.Handler interface

type GzipHandler

type GzipHandler struct{}

func (*GzipHandler) GzipMiddleware

func (g *GzipHandler) GzipMiddleware(next http.Handler) http.Handler

type WrappedResponseWriter

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

func NewWrappedResponseWriter

func NewWrappedResponseWriter(rw http.ResponseWriter) *WrappedResponseWriter

func (*WrappedResponseWriter) Flush

func (wr *WrappedResponseWriter) Flush()

func (*WrappedResponseWriter) Header

func (wr *WrappedResponseWriter) Header() http.Header

func (*WrappedResponseWriter) Write

func (wr *WrappedResponseWriter) Write(d []byte) (int, error)

func (*WrappedResponseWriter) WriteHeader

func (wr *WrappedResponseWriter) WriteHeader(statuscode int)

Jump to

Keyboard shortcuts

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