Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func (*Data) ContentType ¶
func (*Data) SetHttpCode ¶
type Json ¶
type Json struct {
// contains filtered or unexported fields
}
func (*Json) ContentType ¶
func (*Json) SetHttpCode ¶
type Jsonp ¶
type Jsonp struct {
// contains filtered or unexported fields
}
func (*Jsonp) ContentType ¶
func (*Jsonp) SetHttpCode ¶
type ProtoBuf ¶
type ProtoBuf struct {
// contains filtered or unexported fields
}
func (*ProtoBuf) ContentType ¶
func (*ProtoBuf) SetHttpCode ¶
type Render ¶
type Render interface { // Data() Data to be written Content() []byte // HttpCode The HTTP status code HttpCode() int // ContentType The HTTP Content-Type ContentType() string // SetHttpCode Set The HTTP status code SetHttpCode(code int) }
func NewProtoBuf ¶
func NewProtoBuf(data interface{}) Render
type Xml ¶
type Xml struct {
// contains filtered or unexported fields
}
func (*Xml) ContentType ¶
func (*Xml) SetHttpCode ¶
Click to show internal directories.
Click to hide internal directories.