Documentation
¶
Index ¶
- Constants
- type Count
- type CountRequestEnvelope
- func (C *CountRequestEnvelope) Bytes() (s []byte)
- func (C *CountRequestEnvelope) Label() nip1.Label
- func (C *CountRequestEnvelope) MarshalJSON() (bytes []byte, e error)
- func (C *CountRequestEnvelope) String() (s string)
- func (C *CountRequestEnvelope) ToArray() array.T
- func (C *CountRequestEnvelope) Unmarshal(buf *text.Buffer) (e error)
- type CountResponseEnvelope
- func (C *CountResponseEnvelope) Bytes() (s []byte)
- func (C *CountResponseEnvelope) Label() nip1.Label
- func (C *CountResponseEnvelope) MarshalJSON() (bytes []byte, e error)
- func (C *CountResponseEnvelope) String() (s string)
- func (C *CountResponseEnvelope) ToArray() array.T
- func (C *CountResponseEnvelope) Unmarshal(buf *text.Buffer) (e error)
Constants ¶
View Source
const COUNT = "COUNT"
View Source
const LCount nip1.Label = 9
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountRequestEnvelope ¶
type CountRequestEnvelope struct { SubscriptionID nip1.SubscriptionID nip1.Filters }
func (*CountRequestEnvelope) Bytes ¶
func (C *CountRequestEnvelope) Bytes() (s []byte)
func (*CountRequestEnvelope) Label ¶
func (C *CountRequestEnvelope) Label() nip1.Label
func (*CountRequestEnvelope) MarshalJSON ¶
func (C *CountRequestEnvelope) MarshalJSON() (bytes []byte, e error)
MarshalJSON returns the JSON encoded form of the envelope.
func (*CountRequestEnvelope) String ¶
func (C *CountRequestEnvelope) String() (s string)
func (*CountRequestEnvelope) ToArray ¶
func (C *CountRequestEnvelope) ToArray() array.T
type CountResponseEnvelope ¶
type CountResponseEnvelope struct { SubscriptionID nip1.SubscriptionID Count int64 Approximate bool }
func NewCountResponseEnvelope ¶
func NewCountResponseEnvelope(sid nip1.SubscriptionID, count int64, approx bool) (C *CountResponseEnvelope)
func (*CountResponseEnvelope) Bytes ¶
func (C *CountResponseEnvelope) Bytes() (s []byte)
func (*CountResponseEnvelope) Label ¶
func (C *CountResponseEnvelope) Label() nip1.Label
func (*CountResponseEnvelope) MarshalJSON ¶ added in v1.0.7
func (C *CountResponseEnvelope) MarshalJSON() (bytes []byte, e error)
func (*CountResponseEnvelope) String ¶
func (C *CountResponseEnvelope) String() (s string)
func (*CountResponseEnvelope) ToArray ¶
func (C *CountResponseEnvelope) ToArray() array.T
Click to show internal directories.
Click to hide internal directories.