Documentation ¶
Index ¶
- type Client
- func (c *Client) CollectAndProcessTelemetry(ctx context.Context)
- func (c *Client) ProcessReceivedEnvelope(envelope *v2protocol.Envelope) *json.RawMessage
- func (c *Client) ProcessReceivedMessages(receivedMessages ReceivedMessages) *json.RawMessage
- func (c *Client) ProcessSentEnvelope(sentEnvelope wakuv2.SentEnvelope) *json.RawMessage
- func (c *Client) PushReceivedEnvelope(receivedEnvelope *v2protocol.Envelope)
- func (c *Client) PushReceivedMessages(receivedMessages ReceivedMessages)
- func (c *Client) PushSentEnvelope(sentEnvelope wakuv2.SentEnvelope)
- func (c *Client) Start(ctx context.Context)
- func (c *Client) UpdateEnvelopeProcessingError(shhMessage *types.Message, processingError error)
- type ReceivedMessages
- type TelemetryRequest
- type TelemetryType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CollectAndProcessTelemetry ¶ added in v0.180.31
func (*Client) ProcessReceivedEnvelope ¶ added in v0.180.31
func (c *Client) ProcessReceivedEnvelope(envelope *v2protocol.Envelope) *json.RawMessage
func (*Client) ProcessReceivedMessages ¶ added in v0.180.31
func (c *Client) ProcessReceivedMessages(receivedMessages ReceivedMessages) *json.RawMessage
func (*Client) ProcessSentEnvelope ¶ added in v0.180.31
func (c *Client) ProcessSentEnvelope(sentEnvelope wakuv2.SentEnvelope) *json.RawMessage
func (*Client) PushReceivedEnvelope ¶ added in v0.171.11
func (c *Client) PushReceivedEnvelope(receivedEnvelope *v2protocol.Envelope)
func (*Client) PushReceivedMessages ¶
func (c *Client) PushReceivedMessages(receivedMessages ReceivedMessages)
func (*Client) PushSentEnvelope ¶ added in v0.180.31
func (c *Client) PushSentEnvelope(sentEnvelope wakuv2.SentEnvelope)
type ReceivedMessages ¶ added in v0.180.31
type ReceivedMessages struct { Filter transport.Filter SSHMessage *types.Message Messages []*v1protocol.StatusMessage }
type TelemetryRequest ¶ added in v0.180.31
type TelemetryRequest struct { Id int `json:"id"` TelemetryType TelemetryType `json:"telemetry_type"` TelemetryData *json.RawMessage `json:"telemetry_data"` }
type TelemetryType ¶ added in v0.180.31
type TelemetryType string
const ( ProtocolStatsMetric TelemetryType = "ProtocolStats" ReceivedEnvelopeMetric TelemetryType = "ReceivedEnvelope" SentEnvelopeMetric TelemetryType = "SentEnvelope" UpdateEnvelopeMetric TelemetryType = "UpdateEnvelope" ReceivedMessagesMetric TelemetryType = "ReceivedMessages" )
Click to show internal directories.
Click to hide internal directories.