Documentation ¶ Index ¶ Constants type B type E type N type Request func New() *Request func NewRequest(id *sid.T, filters *filters.T) *Request func (en *Request) Label() string func (en *Request) MarshalJSON(dst B) (b B, err error) func (en *Request) UnmarshalJSON(b B) (r B, err error) func (en *Request) Write(ws enveloper.Writer) (err E) type Response func NewResponse() *Response func NewResponseFrom(id *sid.T, cnt int, approx bool) *Response func (en *Response) Label() string func (en *Response) MarshalJSON(dst B) (b B, err error) func (en *Response) UnmarshalJSON(b B) (r B, err error) func (en *Response) Write(ws enveloper.Writer) (err E) type S Constants ¶ View Source const L = "COUNT" Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type B ¶ type B = []byte type E ¶ type E = error type N ¶ added in v0.0.14 type N = int type Request ¶ type Request struct { ID *sid.T Filters *filters.T } func New ¶ func New() *Request func NewRequest ¶ func NewRequest(id *sid.T, filters *filters.T) *Request func (*Request) Label ¶ func (en *Request) Label() string func (*Request) MarshalJSON ¶ func (en *Request) MarshalJSON(dst B) (b B, err error) func (*Request) UnmarshalJSON ¶ func (en *Request) UnmarshalJSON(b B) (r B, err error) func (*Request) Write ¶ func (en *Request) Write(ws enveloper.Writer) (err E) type Response ¶ type Response struct { ID *sid.T Count int Approximate bool } func NewResponse ¶ func NewResponse() *Response func NewResponseFrom ¶ func NewResponseFrom(id *sid.T, cnt int, approx bool) *Response func (*Response) Label ¶ func (en *Response) Label() string func (*Response) MarshalJSON ¶ func (en *Response) MarshalJSON(dst B) (b B, err error) func (*Response) UnmarshalJSON ¶ func (en *Response) UnmarshalJSON(b B) (r B, err error) func (*Response) Write ¶ func (en *Response) Write(ws enveloper.Writer) (err E) type S ¶ type S = string Source Files ¶ View all Source files countenvelope.go util.go Click to show internal directories. Click to hide internal directories.