countenvelope

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2024 License: CC0-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const L = "COUNT"

Variables

This section is empty.

Functions

func Parse added in v0.1.4

func Parse(b B) (t *Response, rem B, err E)

func ParseRequest added in v0.1.4

func ParseRequest(b B) (t *Request, rem B, err E)

Types

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(w io.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(w io.Writer) (err E)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL