countenvelope

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const L = "COUNT"

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Subscription *subscription.Id
	Filters      *filters.T
}

func New

func New() *Request

func NewRequest

func NewRequest(id *subscription.Id, filters *filters.T) *Request

func ParseRequest

func ParseRequest(b by) (t *Request, rem by, err er)

func (*Request) Label

func (en *Request) Label() string

func (*Request) Marshal added in v1.2.40

func (en *Request) Marshal(dst by) (b by)

func (*Request) Unmarshal added in v1.2.40

func (en *Request) Unmarshal(b by) (r by, err er)

func (*Request) Write

func (en *Request) Write(w io.Writer) (err er)

type Response

type Response struct {
	ID          *subscription.Id
	Count       no
	Approximate bo
}

func NewResponse

func NewResponse() *Response

func NewResponseFrom

func NewResponseFrom[V st | by](s V, cnt no, approx ...bo) (res *Response, err er)

func Parse

func Parse(b by) (t *Response, rem by, err er)

func (*Response) Label

func (en *Response) Label() string

func (*Response) Marshal added in v1.2.40

func (en *Response) Marshal(dst by) (b by)

func (*Response) Unmarshal added in v1.2.40

func (en *Response) Unmarshal(b by) (r by, err er)

func (*Response) Write

func (en *Response) Write(w io.Writer) (err er)

Jump to

Keyboard shortcuts

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