Versions in this module Expand all Collapse all v1 v1.1.2 Nov 2, 2020 v1.1.1 Nov 2, 2020 v1.1.0 Nov 2, 2020 v1.0.0 Jul 11, 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)