writer

package
v0.0.0-...-dfeffc8 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommonResponseHeader

func AddCommonResponseHeader(apiContext *types.APIContext) error

Types

type EncodingResponseWriter

type EncodingResponseWriter struct {
	ContentType string
	Encoder     func(io.Writer, interface{}) error
}

func (*EncodingResponseWriter) Body

func (j *EncodingResponseWriter) Body(apiContext *types.APIContext, writer io.Writer, obj interface{}) error

func (*EncodingResponseWriter) VersionBody

func (j *EncodingResponseWriter) VersionBody(apiContext *types.APIContext, version *types.APIVersion, writer io.Writer, obj interface{}) error

func (*EncodingResponseWriter) Write

func (j *EncodingResponseWriter) Write(apiContext *types.APIContext, code int, obj interface{})

type HTMLResponseWriter

type HTMLResponseWriter struct {
	EncodingResponseWriter
}

func (*HTMLResponseWriter) Write

func (h *HTMLResponseWriter) Write(apiContext *types.APIContext, code int, obj interface{})

Jump to

Keyboard shortcuts

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