Versions in this module Expand all Collapse all v0 v0.4.1 Feb 22, 2020 v0.4.0 Feb 22, 2020 v0.3.11 Feb 22, 2020 v0.3.10 Feb 22, 2020 v0.3.9 Feb 22, 2020 v0.3.8 Feb 19, 2020 v0.3.7 Feb 19, 2020 v0.3.6 Feb 19, 2020 v0.3.5 Feb 19, 2020 Changes in this version + type Data struct + ContentType string + Data [][]byte + func (r Data) Render(w http.ResponseWriter) (err error) + func (r Data) WriteContentType(w http.ResponseWriter) + type JSON struct + Code int + Data interface{} + Message string + TTL int + func (r JSON) Render(w http.ResponseWriter) error + func (r JSON) WriteContentType(w http.ResponseWriter) + type MapJSON map[string]interface + func (m MapJSON) Render(w http.ResponseWriter) error + func (m MapJSON) WriteContentType(w http.ResponseWriter) + type PB struct + Code int64 + Data *google_protobuf.Any + Message string + TTL uint64 + func (*PB) Descriptor() ([]byte, []int) + func (*PB) ProtoMessage() + func (m *PB) GetCode() int64 + func (m *PB) GetData() *google_protobuf.Any + func (m *PB) GetMessage() string + func (m *PB) GetTTL() uint64 + func (m *PB) Reset() + func (m *PB) String() string + func (r PB) Render(w http.ResponseWriter) error + func (r PB) WriteContentType(w http.ResponseWriter) + type Redirect struct + Code int + Location string + Request *http.Request + func (r Redirect) Render(w http.ResponseWriter) error + func (r Redirect) WriteContentType(http.ResponseWriter) + type Render interface + Render func(http.ResponseWriter) error + WriteContentType func(w http.ResponseWriter) + type String struct + Data []interface{} + Format string + func (r String) Render(w http.ResponseWriter) error + func (r String) WriteContentType(w http.ResponseWriter) + type XML struct + Code int + Data interface{} + Message string + func (r XML) Render(w http.ResponseWriter) (err error) + func (r XML) WriteContentType(w http.ResponseWriter)