countenvelope

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: GPL-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Count

type Count struct {
	Count       int  `json:"count"`
	Approximate bool `json:"approximate,omitempty"`
}

type Request

type Request struct {
	ID      subscriptionid.T
	Filters filters.T
}

func (*Request) Bytes

func (C *Request) Bytes() []byte

func (*Request) Label

func (C *Request) Label() string

func (*Request) MarshalJSON

func (C *Request) MarshalJSON() ([]byte, error)

func (*Request) String

func (C *Request) String() string

func (*Request) ToArray

func (C *Request) ToArray() array.T

func (*Request) Unmarshal

func (C *Request) Unmarshal(buf *text.Buffer) (err error)

type Response

type Response struct {
	ID          subscriptionid.T
	Count       int
	Approximate bool
}

func New

func New(sid subscriptionid.T, count int, approx bool) (C *Response)

func (*Response) Bytes

func (env *Response) Bytes() (s []byte)

func (*Response) Label

func (env *Response) Label() string

func (*Response) MarshalJSON

func (env *Response) MarshalJSON() ([]byte, error)

func (*Response) String

func (env *Response) String() (s string)

func (*Response) ToArray

func (env *Response) ToArray() array.T

func (*Response) Unmarshal

func (env *Response) Unmarshal(buf *text.Buffer) (err error)

Jump to

Keyboard shortcuts

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