Versions in this module Expand all Collapse all v1 v1.0.0 Feb 22, 2021 v0 v0.1.7 Mar 17, 2021 v0.1.6 Mar 16, 2021 v0.1.5 Mar 12, 2021 v0.1.4 Mar 11, 2021 v0.1.3 Mar 11, 2021 v0.1.2 Mar 5, 2021 v0.1.1 Mar 5, 2021 v0.1.0 Mar 2, 2021 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)