Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NegentropySync ¶
func ParseNegMessage ¶
func ParseNegMessage(message []byte) nostr.Envelope
Types ¶
type CloseEnvelope ¶
type CloseEnvelope struct {
SubscriptionID string
}
func (CloseEnvelope) Label ¶
func (_ CloseEnvelope) Label() string
func (CloseEnvelope) MarshalJSON ¶
func (v CloseEnvelope) MarshalJSON() ([]byte, error)
func (CloseEnvelope) String ¶
func (v CloseEnvelope) String() string
func (*CloseEnvelope) UnmarshalJSON ¶
func (v *CloseEnvelope) UnmarshalJSON(data []byte) error
type ErrorEnvelope ¶
func (ErrorEnvelope) Label ¶
func (_ ErrorEnvelope) Label() string
func (ErrorEnvelope) MarshalJSON ¶
func (v ErrorEnvelope) MarshalJSON() ([]byte, error)
func (ErrorEnvelope) String ¶
func (v ErrorEnvelope) String() string
func (*ErrorEnvelope) UnmarshalJSON ¶
func (v *ErrorEnvelope) UnmarshalJSON(data []byte) error
type MessageEnvelope ¶
func (MessageEnvelope) Label ¶
func (_ MessageEnvelope) Label() string
func (MessageEnvelope) MarshalJSON ¶
func (v MessageEnvelope) MarshalJSON() ([]byte, error)
func (MessageEnvelope) String ¶
func (v MessageEnvelope) String() string
func (*MessageEnvelope) UnmarshalJSON ¶
func (v *MessageEnvelope) UnmarshalJSON(data []byte) error
type OpenEnvelope ¶
func (OpenEnvelope) Label ¶
func (_ OpenEnvelope) Label() string
func (OpenEnvelope) MarshalJSON ¶
func (v OpenEnvelope) MarshalJSON() ([]byte, error)
func (OpenEnvelope) String ¶
func (v OpenEnvelope) String() string
func (*OpenEnvelope) UnmarshalJSON ¶
func (v *OpenEnvelope) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.