countenvelope

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: Unlicense Imports: 9 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 added in v1.0.0

func New() *Request

func NewRequest

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

func ParseRequest

func ParseRequest(b []byte) (t *Request, rem []byte, err error)

func (*Request) Label

func (en *Request) Label() string

func (*Request) Marshal

func (en *Request) Marshal(dst []byte) (b []byte)

func (*Request) Unmarshal

func (en *Request) Unmarshal(b []byte) (r []byte, err error)

func (*Request) Write

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

type Response

type Response struct {
	ID          *subscription.Id
	Count       int
	Approximate bool
}

func NewResponse

func NewResponse() *Response

func NewResponseFrom

func NewResponseFrom[V string | []byte](s V, cnt int, approx ...bool) (res *Response, err error)

func Parse

func Parse(b []byte) (t *Response, rem []byte, err error)

func (*Response) Label

func (en *Response) Label() string

func (*Response) Marshal

func (en *Response) Marshal(dst []byte) (b []byte)

func (*Response) Unmarshal

func (en *Response) Unmarshal(b []byte) (r []byte, err error)

func (*Response) Write

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

Jump to

Keyboard shortcuts

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