writer

package
Version: v0.0.0-...-79b91ea Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 11 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 HTMLResponseWriter

type HTMLResponseWriter struct {
	JSONResponseWriter
}

func (*HTMLResponseWriter) Write

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

type JSONResponseWriter

type JSONResponseWriter struct {
}

func (*JSONResponseWriter) Body

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

func (*JSONResponseWriter) VersionBody

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

func (*JSONResponseWriter) Write

func (j *JSONResponseWriter) 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