Documentation ¶
Index ¶
- Constants
- type Message
- type MessageHeader
- type MessagePayload
- func (receiver MessagePayload) Blocks() (*car.CarReader, error)
- func (receiver MessagePayload) Rebase() (bool, bool)
- func (receiver MessagePayload) Rev() (string, bool)
- func (receiver MessagePayload) Seq() (int, bool)
- func (receiver MessagePayload) Since() (string, bool)
- func (receiver MessagePayload) Time() (string, bool)
- func (receiver MessagePayload) TooBig() (bool, bool)
- type Operation
Constants ¶
const WebSocketURI string = "wss://bsky.network/xrpc/com.atproto.sync.subscribeRepos"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message []byte
Message represents a message from the Bluesky Firehose websocket.
func (Message) Decode ¶
func (receiver Message) Decode(header *MessageHeader, payload *MessagePayload) error
Decode decodes the message from the Bluesky Firehose websocket into the message-header and the message-payload.
type MessageHeader ¶
The message that comes back from the Bluesky Firehose websocket is 2 CBOR objects concatenated with each other. The first part is called the message-header. The second part is called the message-payload.
MessageHeader represents the message-header.
type MessagePayload ¶
The message that comes back from the Bluesky Firehose websocket is 2 CBOR objects concatenated with each other. The first part is called the message-header. The second part is called the message-payload.
MessagePayload represents the message-payload.
func (MessagePayload) Blocks ¶
func (receiver MessagePayload) Blocks() (*car.CarReader, error)
func (MessagePayload) Rebase ¶
func (receiver MessagePayload) Rebase() (bool, bool)
func (MessagePayload) Rev ¶
func (receiver MessagePayload) Rev() (string, bool)
func (MessagePayload) Seq ¶
func (receiver MessagePayload) Seq() (int, bool)
func (MessagePayload) Since ¶
func (receiver MessagePayload) Since() (string, bool)
func (MessagePayload) Time ¶
func (receiver MessagePayload) Time() (string, bool)
func (MessagePayload) TooBig ¶
func (receiver MessagePayload) TooBig() (bool, bool)