responsewriter

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseWriter

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

func NewResponseWriter

func NewResponseWriter(logger *logr.Logger) *ResponseWriter

func (*ResponseWriter) Write

func (r *ResponseWriter) Write(w http.ResponseWriter, v any, statusCode int)

func (*ResponseWriter) WriteError

func (r *ResponseWriter) WriteError(w http.ResponseWriter, msg string)

func (*ResponseWriter) WriteErrorf

func (r *ResponseWriter) WriteErrorf(w http.ResponseWriter, format string, a ...any)

func (*ResponseWriter) WriteOK

func (r *ResponseWriter) WriteOK(w http.ResponseWriter, v any)

Jump to

Keyboard shortcuts

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