Documentation ¶
Index ¶
- type HTMLResponseWriter
- type JSONResponseWriter
- func (j *JSONResponseWriter) Body(apiContext *types.APIContext, writer io.Writer, obj interface{}) error
- func (j *JSONResponseWriter) VersionBody(apiContext *types.APIContext, version *types.APIVersion, writer io.Writer, ...) error
- func (j *JSONResponseWriter) Write(apiContext *types.APIContext, code int, obj interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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{})
Click to show internal directories.
Click to hide internal directories.