Documentation ¶
Index ¶
- type Client
- func (c *Client) ProcessErrorSendingEnvelope(errorSendingEnvelope wakuv2.ErrorSendingEnvelope) *json.RawMessage
- func (c *Client) ProcessPeerConnFailure(peerConnFailure PeerConnFailure) *json.RawMessage
- func (c *Client) ProcessPeerCount(peerCount PeerCount) *json.RawMessage
- 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) PushErrorSendingEnvelope(ctx context.Context, errorSendingEnvelope wakuv2.ErrorSendingEnvelope)
- func (c *Client) PushPeerConnFailures(ctx context.Context, peerConnFailures map[string]int)
- func (c *Client) PushPeerCount(ctx context.Context, peerCount int)
- func (c *Client) PushReceivedEnvelope(ctx context.Context, receivedEnvelope *v2protocol.Envelope)
- func (c *Client) PushReceivedMessages(ctx context.Context, receivedMessages ReceivedMessages)
- func (c *Client) PushSentEnvelope(ctx context.Context, sentEnvelope wakuv2.SentEnvelope)
- func (c *Client) Start(ctx context.Context)
- func (c *Client) UpdateEnvelopeProcessingError(shhMessage *types.Message, processingError error)
- type PeerConnFailure
- type PeerCount
- type ReceivedMessages
- type TelemetryClientOption
- 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) ProcessErrorSendingEnvelope ¶ added in v0.181.32
func (c *Client) ProcessErrorSendingEnvelope(errorSendingEnvelope wakuv2.ErrorSendingEnvelope) *json.RawMessage
func (*Client) ProcessPeerConnFailure ¶ added in v0.182.41
func (c *Client) ProcessPeerConnFailure(peerConnFailure PeerConnFailure) *json.RawMessage
func (*Client) ProcessPeerCount ¶ added in v0.182.35
func (c *Client) ProcessPeerCount(peerCount PeerCount) *json.RawMessage
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) PushErrorSendingEnvelope ¶ added in v0.181.32
func (c *Client) PushErrorSendingEnvelope(ctx context.Context, errorSendingEnvelope wakuv2.ErrorSendingEnvelope)
func (*Client) PushPeerConnFailures ¶ added in v0.182.41
func (*Client) PushPeerCount ¶ added in v0.182.35
func (*Client) PushReceivedEnvelope ¶ added in v0.171.11
func (c *Client) PushReceivedEnvelope(ctx context.Context, receivedEnvelope *v2protocol.Envelope)
func (*Client) PushReceivedMessages ¶
func (c *Client) PushReceivedMessages(ctx context.Context, receivedMessages ReceivedMessages)
func (*Client) PushSentEnvelope ¶ added in v0.180.31
func (c *Client) PushSentEnvelope(ctx context.Context, sentEnvelope wakuv2.SentEnvelope)
type PeerConnFailure ¶ added in v0.182.41
type ReceivedMessages ¶ added in v0.180.31
type ReceivedMessages struct { Filter transport.Filter SSHMessage *types.Message Messages []*v1protocol.StatusMessage }
type TelemetryClientOption ¶ added in v0.181.32
type TelemetryClientOption func(*Client)
func WithPeerID ¶ added in v0.182.41
func WithPeerID(peerId string) TelemetryClientOption
func WithSendPeriod ¶ added in v0.181.32
func WithSendPeriod(sendPeriod time.Duration) TelemetryClientOption
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" ErrorSendingEnvelopeMetric TelemetryType = "ErrorSendingEnvelope" PeerCountMetric TelemetryType = "PeerCount" PeerConnFailuresMetric TelemetryType = "PeerConnFailure" MaxRetryCache = 5000 )
Click to show internal directories.
Click to hide internal directories.