render

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONResponseWriter

type JSONResponseWriter struct {
	Buffer bytes.Buffer
}

func (*JSONResponseWriter) Header

func (w *JSONResponseWriter) Header() http.Header

func (*JSONResponseWriter) Write

func (w *JSONResponseWriter) Write(i []byte) (int, error)

func (*JSONResponseWriter) WriteHeader

func (w *JSONResponseWriter) WriteHeader(statusCode int)

type ProtoJSON

type ProtoJSON struct {
	Data           any
	MarshalOptions protojson.MarshalOptions
}

func (ProtoJSON) Render

func (r ProtoJSON) Render(w http.ResponseWriter) (err error)

func (ProtoJSON) WriteContentType

func (r ProtoJSON) WriteContentType(w http.ResponseWriter)

Jump to

Keyboard shortcuts

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