Versions in this module Expand all Collapse all v1 v1.1.7 Jul 29, 2020 v1.1.6 Jul 29, 2020 v1.1.5 Jul 29, 2020 v1.1.4 Jul 29, 2020 v1.1.3 Jul 29, 2020 v1.1.0 Jul 29, 2020 v0 v0.5.0 Jul 29, 2020 v0.2.18 Mar 5, 2020 v0.2.17 Mar 5, 2020 v0.2.13 Aug 31, 2019 v0.2.2 Jul 1, 2019 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)