countenvelope

package
v1.2.32 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 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) MarshalJSON

func (en *Request) MarshalJSON(dst by) (b by, err er)

func (*Request) UnmarshalJSON

func (en *Request) UnmarshalJSON(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) MarshalJSON

func (en *Response) MarshalJSON(dst by) (b by, err er)

func (*Response) UnmarshalJSON

func (en *Response) UnmarshalJSON(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