Documentation
¶
Index ¶
- Constants
- func FetchIDsOnly(ctx context.Context, url string, filter nostr.Filter) (<-chan string, error)
- func NegentropySync(ctx context.Context, store nostr.RelayStore, url string, filter nostr.Filter, ...) error
- func ParseNegMessage(message []byte) nostr.Envelope
- type CloseEnvelope
- type Direction
- type ErrorEnvelope
- type MessageEnvelope
- type OpenEnvelope
Constants ¶
View Source
const ( Up = 0 Down = 1 Both = 2 )
Variables ¶
This section is empty.
Functions ¶
func FetchIDsOnly ¶ added in v0.49.7
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.