protocol

package
v1.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ShannonRequestErrorType_name = map[int32]string{
		0:  "SHANNON_REQUEST_ERROR_UNSPECIFIED",
		1:  "SHANNON_REQUEST_ERROR_INTERNAL",
		2:  "SHANNON_REQUEST_ERROR_INTERNAL_NO_ENDPOINTS_AVAILABLE",
		3:  "SHANNON_REQUEST_ERROR_INTERNAL_CENTRALIZED_MODE_APP_FETCH_ERR",
		4:  "SHANNON_REQUEST_ERROR_INTERNAL_CENTRALIZED_MODE_APP_DELEGATION",
		5:  "SHANNON_REQUEST_ERROR_INTERNAL_CENTRALIZED_MODE_NO_SESSIONS",
		6:  "SHANNON_REQUEST_ERROR_INTERNAL_CENTRALIZED_MODE_NO_APPS_FOR_SERVICE",
		7:  "SHANNON_REQUEST_ERROR_INTERNAL_DELEGATED_GET_APP_HTTP",
		8:  "SHANNON_REQUEST_ERROR_INTERNAL_DELEGATED_FETCH_APP",
		9:  "SHANNON_REQUEST_ERROR_INTERNAL_DELEGATED_APP_DOES_NOT_DELEGATE",
		10: "SHANNON_REQUEST_ERROR_INTERNAL_SIGNER_SETUP_ERROR",
	}
	ShannonRequestErrorType_value = map[string]int32{
		"SHANNON_REQUEST_ERROR_UNSPECIFIED":                                   0,
		"SHANNON_REQUEST_ERROR_INTERNAL":                                      1,
		"SHANNON_REQUEST_ERROR_INTERNAL_NO_ENDPOINTS_AVAILABLE":               2,
		"SHANNON_REQUEST_ERROR_INTERNAL_CENTRALIZED_MODE_APP_FETCH_ERR":       3,
		"SHANNON_REQUEST_ERROR_INTERNAL_CENTRALIZED_MODE_APP_DELEGATION":      4,
		"SHANNON_REQUEST_ERROR_INTERNAL_CENTRALIZED_MODE_NO_SESSIONS":         5,
		"SHANNON_REQUEST_ERROR_INTERNAL_CENTRALIZED_MODE_NO_APPS_FOR_SERVICE": 6,
		"SHANNON_REQUEST_ERROR_INTERNAL_DELEGATED_GET_APP_HTTP":               7,
		"SHANNON_REQUEST_ERROR_INTERNAL_DELEGATED_FETCH_APP":                  8,
		"SHANNON_REQUEST_ERROR_INTERNAL_DELEGATED_APP_DOES_NOT_DELEGATE":      9,
		"SHANNON_REQUEST_ERROR_INTERNAL_SIGNER_SETUP_ERROR":                   10,
	}
)

Enum value maps for ShannonRequestErrorType.

View Source
var (
	ShannonEndpointErrorType_name = map[int32]string{
		0:  "SHANNON_ENDPOINT_ERROR_UNSPECIFIED",
		1:  "SHANNON_ENDPOINT_ERROR_INTERNAL",
		2:  "SHANNON_ENDPOINT_ERROR_CONFIG",
		3:  "SHANNON_ENDPOINT_ERROR_TIMEOUT",
		4:  "SHANNON_ENDPOINT_ERROR_PAYLOAD_UNMARSHAL_ERR",
		5:  "SHANNON_ENDPOINT_ERROR_RESPONSE_VALIDATION_ERR",
		6:  "SHANNON_ENDPOINT_ERROR_RESPONSE_GET_PUBKEY_ERR",
		7:  "SHANNON_ENDPOINT_ERROR_NIL_SUPPLIER_PUBKEY",
		8:  "SHANNON_ENDPOINT_ERROR_RESPONSE_SIGNATURE_VALIDATION_ERR",
		10: "SHANNON_ENDPOINT_ERROR_HTTP_CONNECTION_REFUSED",
		11: "SHANNON_ENDPOINT_ERROR_HTTP_CONNECTION_RESET",
		12: "SHANNON_ENDPOINT_ERROR_HTTP_CONNECTION_TIMEOUT",
		13: "SHANNON_ENDPOINT_ERROR_HTTP_NO_ROUTE_TO_HOST",
		14: "SHANNON_ENDPOINT_ERROR_HTTP_NETWORK_UNREACHABLE",
		15: "SHANNON_ENDPOINT_ERROR_HTTP_BROKEN_PIPE",
		16: "SHANNON_ENDPOINT_ERROR_HTTP_IO_TIMEOUT",
		17: "SHANNON_ENDPOINT_ERROR_HTTP_TRANSPORT_ERROR",
		18: "SHANNON_ENDPOINT_ERROR_HTTP_BAD_RESPONSE",
		19: "SHANNON_ENDPOINT_ERROR_HTTP_INVALID_STATUS",
		20: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_CONNECTION_REFUSED",
		21: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_SERVICE_NOT_CONFIGURED",
		22: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_UNEXPECTED_EOF",
		23: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_PROTOCOL_WIRE_TYPE",
		24: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_PROTOCOL_RELAY_REQUEST",
		25: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_SUPPLIERS_NOT_REACHABLE",
		26: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_BACKEND_SERVICE",
		27: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_TCP_CONNECTION",
		28: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_RESPONSE_SIZE_EXCEEDED",
		29: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_SERVER_CLOSED_CONNECTION",
		30: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_HTTP_TRANSPORT",
		31: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_DNS_RESOLUTION",
		32: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_TLS_HANDSHAKE",
		33: "SHANNON_ENDPOINT_REQUEST_CANCELED_BY_PATH",
		34: "SHANNON_ENDPOINT_ERROR_HTTP_UNKNOWN",
		35: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_UNKNOWN",
		36: "SHANNON_ENDPOINT_ERROR_UNKNOWN",
		37: "SHANNON_ENDPOINT_ERROR_HTTP_NON_2XX_STATUS",
		38: "SHANNON_ENDPOINT_ERROR_HTTP_CONTEXT_DEADLINE_EXCEEDED",
		39: "SHANNON_ENDPOINT_ERROR_WEBSOCKET_CONNECTION_FAILED",
		40: "SHANNON_ENDPOINT_ERROR_WEBSOCKET_REQUEST_SIGNING_FAILED",
		41: "SHANNON_ENDPOINT_ERROR_WEBSOCKET_RELAY_RESPONSE_VALIDATION_FAILED",
		42: "SHANNON_ENDPOINT_ERROR_RELAY_MINER_HTTP_4XX",
		43: "SHANNON_ENDPOINT_ERROR_RELAY_MINER_HTTP_5XX",
		44: "SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_SESSION_MISMATCH",
	}
	ShannonEndpointErrorType_value = map[string]int32{
		"SHANNON_ENDPOINT_ERROR_UNSPECIFIED":                                0,
		"SHANNON_ENDPOINT_ERROR_INTERNAL":                                   1,
		"SHANNON_ENDPOINT_ERROR_CONFIG":                                     2,
		"SHANNON_ENDPOINT_ERROR_TIMEOUT":                                    3,
		"SHANNON_ENDPOINT_ERROR_PAYLOAD_UNMARSHAL_ERR":                      4,
		"SHANNON_ENDPOINT_ERROR_RESPONSE_VALIDATION_ERR":                    5,
		"SHANNON_ENDPOINT_ERROR_RESPONSE_GET_PUBKEY_ERR":                    6,
		"SHANNON_ENDPOINT_ERROR_NIL_SUPPLIER_PUBKEY":                        7,
		"SHANNON_ENDPOINT_ERROR_RESPONSE_SIGNATURE_VALIDATION_ERR":          8,
		"SHANNON_ENDPOINT_ERROR_HTTP_CONNECTION_REFUSED":                    10,
		"SHANNON_ENDPOINT_ERROR_HTTP_CONNECTION_RESET":                      11,
		"SHANNON_ENDPOINT_ERROR_HTTP_CONNECTION_TIMEOUT":                    12,
		"SHANNON_ENDPOINT_ERROR_HTTP_NO_ROUTE_TO_HOST":                      13,
		"SHANNON_ENDPOINT_ERROR_HTTP_NETWORK_UNREACHABLE":                   14,
		"SHANNON_ENDPOINT_ERROR_HTTP_BROKEN_PIPE":                           15,
		"SHANNON_ENDPOINT_ERROR_HTTP_IO_TIMEOUT":                            16,
		"SHANNON_ENDPOINT_ERROR_HTTP_TRANSPORT_ERROR":                       17,
		"SHANNON_ENDPOINT_ERROR_HTTP_BAD_RESPONSE":                          18,
		"SHANNON_ENDPOINT_ERROR_HTTP_INVALID_STATUS":                        19,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_CONNECTION_REFUSED":             20,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_SERVICE_NOT_CONFIGURED":         21,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_UNEXPECTED_EOF":                 22,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_PROTOCOL_WIRE_TYPE":             23,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_PROTOCOL_RELAY_REQUEST":         24,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_SUPPLIERS_NOT_REACHABLE":        25,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_BACKEND_SERVICE":                26,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_TCP_CONNECTION":                 27,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_RESPONSE_SIZE_EXCEEDED":         28,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_SERVER_CLOSED_CONNECTION":       29,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_HTTP_TRANSPORT":                 30,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_DNS_RESOLUTION":                 31,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_TLS_HANDSHAKE":                  32,
		"SHANNON_ENDPOINT_REQUEST_CANCELED_BY_PATH":                         33,
		"SHANNON_ENDPOINT_ERROR_HTTP_UNKNOWN":                               34,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_UNKNOWN":                        35,
		"SHANNON_ENDPOINT_ERROR_UNKNOWN":                                    36,
		"SHANNON_ENDPOINT_ERROR_HTTP_NON_2XX_STATUS":                        37,
		"SHANNON_ENDPOINT_ERROR_HTTP_CONTEXT_DEADLINE_EXCEEDED":             38,
		"SHANNON_ENDPOINT_ERROR_WEBSOCKET_CONNECTION_FAILED":                39,
		"SHANNON_ENDPOINT_ERROR_WEBSOCKET_REQUEST_SIGNING_FAILED":           40,
		"SHANNON_ENDPOINT_ERROR_WEBSOCKET_RELAY_RESPONSE_VALIDATION_FAILED": 41,
		"SHANNON_ENDPOINT_ERROR_RELAY_MINER_HTTP_4XX":                       42,
		"SHANNON_ENDPOINT_ERROR_RELAY_MINER_HTTP_5XX":                       43,
		"SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_SESSION_MISMATCH":               44,
	}
)

Enum value maps for ShannonEndpointErrorType.

View Source
var (
	ShannonWebsocketConnectionObservation_ConnectionEventType_name = map[int32]string{
		0: "CONNECTION_EVENT_TYPE_UNSPECIFIED",
		1: "CONNECTION_ESTABLISHED",
		2: "CONNECTION_CLOSED",
		3: "CONNECTION_ESTABLISHMENT_FAILED",
	}
	ShannonWebsocketConnectionObservation_ConnectionEventType_value = map[string]int32{
		"CONNECTION_EVENT_TYPE_UNSPECIFIED": 0,
		"CONNECTION_ESTABLISHED":            1,
		"CONNECTION_CLOSED":                 2,
		"CONNECTION_ESTABLISHMENT_FAILED":   3,
	}
)

Enum value maps for ShannonWebsocketConnectionObservation_ConnectionEventType.

View Source
var File_path_protocol_observations_proto protoreflect.FileDescriptor
View Source
var File_path_protocol_shannon_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Observations

type Observations struct {

	// Height of the blockchain block when processing the service request through a relay
	BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// Shannon protocol-specific observations
	Shannon *ShannonObservationsList `protobuf:"bytes,3,opt,name=shannon,proto3" json:"shannon,omitempty"`
	// contains filtered or unexported fields
}

Observations aggregates protocol-level observations collected during service request processing.

func (*Observations) Descriptor deprecated

func (*Observations) Descriptor() ([]byte, []int)

Deprecated: Use Observations.ProtoReflect.Descriptor instead.

func (*Observations) GetBlockHeight

func (x *Observations) GetBlockHeight() uint64

func (*Observations) GetShannon

func (x *Observations) GetShannon() *ShannonObservationsList

func (*Observations) ProtoMessage

func (*Observations) ProtoMessage()

func (*Observations) ProtoReflect

func (x *Observations) ProtoReflect() protoreflect.Message

func (*Observations) Reset

func (x *Observations) Reset()

func (*Observations) String

func (x *Observations) String() string

type ShannonEndpointErrorType

type ShannonEndpointErrorType int32

ShannonEndpointErrorType enumerates possible relay errors when interacting with Shannon endpoints.

const (
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_UNSPECIFIED ShannonEndpointErrorType = 0
	// endpoint internal error: not recognized.
	// DEPRECATED: Use more specific error types below (HTTP_UNKNOWN, RAW_PAYLOAD_UNKNOWN, UNKNOWN)
	//
	// Deprecated: Marked as deprecated in path/protocol/shannon.proto.
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_INTERNAL ShannonEndpointErrorType = 1
	// endpoint config error: e.g. DNS lookup error, TLS certificate error.
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_CONFIG ShannonEndpointErrorType = 2
	// endpoint timeout on responding to relay request.
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_TIMEOUT ShannonEndpointErrorType = 3
	// Endpoint payload failed to unmarshal into a RelayResponse struct
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_PAYLOAD_UNMARSHAL_ERR ShannonEndpointErrorType = 4
	// Endpoint response failed basic validation
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RESPONSE_VALIDATION_ERR ShannonEndpointErrorType = 5
	// Could not fetch the public key for supplier address used for the relay.
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RESPONSE_GET_PUBKEY_ERR ShannonEndpointErrorType = 6
	// Received nil public key on supplier lookup using its address
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_NIL_SUPPLIER_PUBKEY ShannonEndpointErrorType = 7
	// RelayResponse's signature failed validation.
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RESPONSE_SIGNATURE_VALIDATION_ERR ShannonEndpointErrorType = 8
	// HTTP relay errors - fine-grained network and transport failures
	// Connection establishment failures
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_HTTP_CONNECTION_REFUSED  ShannonEndpointErrorType = 10
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_HTTP_CONNECTION_RESET    ShannonEndpointErrorType = 11
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_HTTP_CONNECTION_TIMEOUT  ShannonEndpointErrorType = 12
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_HTTP_NO_ROUTE_TO_HOST    ShannonEndpointErrorType = 13
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_HTTP_NETWORK_UNREACHABLE ShannonEndpointErrorType = 14
	// Transport layer errors
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_HTTP_BROKEN_PIPE     ShannonEndpointErrorType = 15
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_HTTP_IO_TIMEOUT      ShannonEndpointErrorType = 16
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_HTTP_TRANSPORT_ERROR ShannonEndpointErrorType = 17
	// HTTP protocol errors
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_HTTP_BAD_RESPONSE   ShannonEndpointErrorType = 18
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_HTTP_INVALID_STATUS ShannonEndpointErrorType = 19
	// Raw payload analysis error types (when unmarshal/validation fails)
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_CONNECTION_REFUSED       ShannonEndpointErrorType = 20
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_SERVICE_NOT_CONFIGURED   ShannonEndpointErrorType = 21
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_UNEXPECTED_EOF           ShannonEndpointErrorType = 22
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_PROTOCOL_WIRE_TYPE       ShannonEndpointErrorType = 23
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_PROTOCOL_RELAY_REQUEST   ShannonEndpointErrorType = 24
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_SUPPLIERS_NOT_REACHABLE  ShannonEndpointErrorType = 25
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_BACKEND_SERVICE          ShannonEndpointErrorType = 26
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_TCP_CONNECTION           ShannonEndpointErrorType = 27
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_RESPONSE_SIZE_EXCEEDED   ShannonEndpointErrorType = 28
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_SERVER_CLOSED_CONNECTION ShannonEndpointErrorType = 29
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_HTTP_TRANSPORT           ShannonEndpointErrorType = 30
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_DNS_RESOLUTION           ShannonEndpointErrorType = 31
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_TLS_HANDSHAKE            ShannonEndpointErrorType = 32
	// RelayRequest was canceled by PATH intentionally.
	ShannonEndpointErrorType_SHANNON_ENDPOINT_REQUEST_CANCELED_BY_PATH ShannonEndpointErrorType = 33
	// ** SHANNON_ENDPOINT_ERROR_HTTP_UNKNOWN **
	// PATH -> HTTP Request -> Endpoint
	// HTTP Response is NOT received
	// We cannot move forward with PATH business logic
	// There is nothing to go to.
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_HTTP_UNKNOWN        ShannonEndpointErrorType = 34
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_UNKNOWN ShannonEndpointErrorType = 35
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_UNKNOWN             ShannonEndpointErrorType = 36
	// The relay request sent to the endpoint via HTTP returned a non 2XX HTTP status code.
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_HTTP_NON_2XX_STATUS ShannonEndpointErrorType = 37
	// The relay request sent to the endpoint via HTTP failed with `context deadline exceeded` error
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_HTTP_CONTEXT_DEADLINE_EXCEEDED ShannonEndpointErrorType = 38
	// The relay request sent to the endpoint via Websocket failed to establish a connection.
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_WEBSOCKET_CONNECTION_FAILED ShannonEndpointErrorType = 39
	// The relay request sent to the endpoint via Websocket failed to sign the request.
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_WEBSOCKET_REQUEST_SIGNING_FAILED ShannonEndpointErrorType = 40
	// The relay request sent to the endpoint via Websocket failed to validate the relay response.
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_WEBSOCKET_RELAY_RESPONSE_VALIDATION_FAILED ShannonEndpointErrorType = 41
	// RelayMiner returned a 4XX HTTP status code
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RELAY_MINER_HTTP_4XX ShannonEndpointErrorType = 42
	// RelayMiner returned a 5XX HTTP status code
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RELAY_MINER_HTTP_5XX ShannonEndpointErrorType = 43
	// Session mismatch - RelayMiner claims supplier is not in session
	// This is likely a PATH-side caching/timing issue, not supplier's fault
	ShannonEndpointErrorType_SHANNON_ENDPOINT_ERROR_RAW_PAYLOAD_SESSION_MISMATCH ShannonEndpointErrorType = 44
)

func (ShannonEndpointErrorType) Descriptor

func (ShannonEndpointErrorType) Enum

func (ShannonEndpointErrorType) EnumDescriptor deprecated

func (ShannonEndpointErrorType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ShannonEndpointErrorType.Descriptor instead.

func (ShannonEndpointErrorType) Number

func (ShannonEndpointErrorType) String

func (x ShannonEndpointErrorType) String() string

func (ShannonEndpointErrorType) Type

type ShannonEndpointObservation

type ShannonEndpointObservation struct {

	// Supplier of the endpoint handling the request
	Supplier string `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier,omitempty"`
	// URL of the endpoint handling the request
	EndpointUrl string `protobuf:"bytes,2,opt,name=endpoint_url,json=endpointUrl,proto3" json:"endpoint_url,omitempty"`
	// Application address associated with the endpoint
	EndpointAppAddress string `protobuf:"bytes,3,opt,name=endpoint_app_address,json=endpointAppAddress,proto3" json:"endpoint_app_address,omitempty"`
	// Service ID of the session associated with the endpoint.
	SessionServiceId string `protobuf:"bytes,4,opt,name=session_service_id,json=sessionServiceId,proto3" json:"session_service_id,omitempty"`
	// Session ID of the session associated with the endpoint.
	SessionId string `protobuf:"bytes,5,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// session start height
	SessionStartHeight int64 `protobuf:"varint,6,opt,name=session_start_height,json=sessionStartHeight,proto3" json:"session_start_height,omitempty"`
	// session end height
	SessionEndHeight int64 `protobuf:"varint,7,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height,omitempty"`
	// Timestamp marking the sending of the request to the endpoint.
	EndpointQueryTimestamp *timestamppb.Timestamp `` /* 129-byte string literal not displayed */
	// Timestamp marking the reception of the endpoint's response.
	// Only set if the endpoint did not timeout.
	EndpointResponseTimestamp *timestamppb.Timestamp `` /* 144-byte string literal not displayed */
	// Error type if relay to this endpoint failed
	ErrorType *ShannonEndpointErrorType `` /* 140-byte string literal not displayed */
	// Additional error details when available
	ErrorDetails *string `protobuf:"bytes,11,opt,name=error_details,json=errorDetails,proto3,oneof" json:"error_details,omitempty"`
	// RelayMiner error details if the endpoint returned a RelayMinerError
	RelayMinerError *ShannonRelayMinerError `protobuf:"bytes,12,opt,name=relay_miner_error,json=relayMinerError,proto3,oneof" json:"relay_miner_error,omitempty"`
	// HTTP status code of the endpoint response
	EndpointBackendServiceHttpResponseStatusCode *int32 `` /* 211-byte string literal not displayed */
	// HTTP Response payload size
	EndpointBackendServiceHttpResponsePayloadSize *int64 `` /* 214-byte string literal not displayed */
	// TODO_TECHDEBT(@adshmh): Separate fallback endpoints into a separate message:
	// Most of fields above (e.g. session_id) only apply to a Shannon endpoint.
	//
	// TODO_CONSIDERATION(@adshmh): Consider renaming to is_gateway_owned OR is_off_protocol.
	//
	// Tracks whether the endpoint is a fallback endpoint.
	IsFallbackEndpoint bool `protobuf:"varint,15,opt,name=is_fallback_endpoint,json=isFallbackEndpoint,proto3" json:"is_fallback_endpoint,omitempty"`
	// contains filtered or unexported fields
}

ShannonEndpointObservation stores a single observation from an endpoint

func (*ShannonEndpointObservation) Descriptor deprecated

func (*ShannonEndpointObservation) Descriptor() ([]byte, []int)

Deprecated: Use ShannonEndpointObservation.ProtoReflect.Descriptor instead.

func (*ShannonEndpointObservation) GetEndpointAppAddress

func (x *ShannonEndpointObservation) GetEndpointAppAddress() string

func (*ShannonEndpointObservation) GetEndpointBackendServiceHttpResponsePayloadSize

func (x *ShannonEndpointObservation) GetEndpointBackendServiceHttpResponsePayloadSize() int64

func (*ShannonEndpointObservation) GetEndpointBackendServiceHttpResponseStatusCode

func (x *ShannonEndpointObservation) GetEndpointBackendServiceHttpResponseStatusCode() int32

func (*ShannonEndpointObservation) GetEndpointQueryTimestamp

func (x *ShannonEndpointObservation) GetEndpointQueryTimestamp() *timestamppb.Timestamp

func (*ShannonEndpointObservation) GetEndpointResponseTimestamp

func (x *ShannonEndpointObservation) GetEndpointResponseTimestamp() *timestamppb.Timestamp

func (*ShannonEndpointObservation) GetEndpointUrl

func (x *ShannonEndpointObservation) GetEndpointUrl() string

func (*ShannonEndpointObservation) GetErrorDetails

func (x *ShannonEndpointObservation) GetErrorDetails() string

func (*ShannonEndpointObservation) GetErrorType

func (*ShannonEndpointObservation) GetIsFallbackEndpoint

func (x *ShannonEndpointObservation) GetIsFallbackEndpoint() bool

func (*ShannonEndpointObservation) GetRelayMinerError

func (x *ShannonEndpointObservation) GetRelayMinerError() *ShannonRelayMinerError

func (*ShannonEndpointObservation) GetSessionEndHeight

func (x *ShannonEndpointObservation) GetSessionEndHeight() int64

func (*ShannonEndpointObservation) GetSessionId

func (x *ShannonEndpointObservation) GetSessionId() string

func (*ShannonEndpointObservation) GetSessionServiceId

func (x *ShannonEndpointObservation) GetSessionServiceId() string

func (*ShannonEndpointObservation) GetSessionStartHeight

func (x *ShannonEndpointObservation) GetSessionStartHeight() int64

func (*ShannonEndpointObservation) GetSupplier

func (x *ShannonEndpointObservation) GetSupplier() string

func (*ShannonEndpointObservation) ProtoMessage

func (*ShannonEndpointObservation) ProtoMessage()

func (*ShannonEndpointObservation) ProtoReflect

func (*ShannonEndpointObservation) Reset

func (x *ShannonEndpointObservation) Reset()

func (*ShannonEndpointObservation) String

func (x *ShannonEndpointObservation) String() string

type ShannonHTTPEndpointObservations

type ShannonHTTPEndpointObservations struct {

	// Multiple observations possible if:
	// - Original endpoint returns invalid response
	// - Retry mechanism activates
	EndpointObservations []*ShannonEndpointObservation `protobuf:"bytes,1,rep,name=endpoint_observations,json=endpointObservations,proto3" json:"endpoint_observations,omitempty"`
	// contains filtered or unexported fields
}

ShannonHTTPEndpointObservations wraps multiple HTTP endpoint observations

func (*ShannonHTTPEndpointObservations) Descriptor deprecated

func (*ShannonHTTPEndpointObservations) Descriptor() ([]byte, []int)

Deprecated: Use ShannonHTTPEndpointObservations.ProtoReflect.Descriptor instead.

func (*ShannonHTTPEndpointObservations) GetEndpointObservations

func (x *ShannonHTTPEndpointObservations) GetEndpointObservations() []*ShannonEndpointObservation

func (*ShannonHTTPEndpointObservations) ProtoMessage

func (*ShannonHTTPEndpointObservations) ProtoMessage()

func (*ShannonHTTPEndpointObservations) ProtoReflect

func (*ShannonHTTPEndpointObservations) Reset

func (*ShannonHTTPEndpointObservations) String

type ShannonObservationsList

type ShannonObservationsList struct {
	Observations []*ShannonRequestObservations `protobuf:"bytes,1,rep,name=observations,proto3" json:"observations,omitempty"`
	// contains filtered or unexported fields
}

ShannonObservationsList provides a container for multiple ShannonRequestObservations, allowing them to be embedded in other protocol buffers.

func (*ShannonObservationsList) Descriptor deprecated

func (*ShannonObservationsList) Descriptor() ([]byte, []int)

Deprecated: Use ShannonObservationsList.ProtoReflect.Descriptor instead.

func (*ShannonObservationsList) GetObservations

func (x *ShannonObservationsList) GetObservations() []*ShannonRequestObservations

func (*ShannonObservationsList) ProtoMessage

func (*ShannonObservationsList) ProtoMessage()

func (*ShannonObservationsList) ProtoReflect

func (x *ShannonObservationsList) ProtoReflect() protoreflect.Message

func (*ShannonObservationsList) Reset

func (x *ShannonObservationsList) Reset()

func (*ShannonObservationsList) String

func (x *ShannonObservationsList) String() string

type ShannonRelayMinerError

type ShannonRelayMinerError struct {

	// Codespace from the RelayMinerError
	Codespace string `protobuf:"bytes,1,opt,name=codespace,proto3" json:"codespace,omitempty"`
	// Code from the RelayMinerError
	Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	// Message from the RelayMinerError
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

ShannonRelayMinerError captures relay miner error details from the RelayResponse

func (*ShannonRelayMinerError) Descriptor deprecated

func (*ShannonRelayMinerError) Descriptor() ([]byte, []int)

Deprecated: Use ShannonRelayMinerError.ProtoReflect.Descriptor instead.

func (*ShannonRelayMinerError) GetCode

func (x *ShannonRelayMinerError) GetCode() uint32

func (*ShannonRelayMinerError) GetCodespace

func (x *ShannonRelayMinerError) GetCodespace() string

func (*ShannonRelayMinerError) GetMessage

func (x *ShannonRelayMinerError) GetMessage() string

func (*ShannonRelayMinerError) ProtoMessage

func (*ShannonRelayMinerError) ProtoMessage()

func (*ShannonRelayMinerError) ProtoReflect

func (x *ShannonRelayMinerError) ProtoReflect() protoreflect.Message

func (*ShannonRelayMinerError) Reset

func (x *ShannonRelayMinerError) Reset()

func (*ShannonRelayMinerError) String

func (x *ShannonRelayMinerError) String() string

type ShannonRequestError

type ShannonRequestError struct {

	// Type of request error, e.g. internal
	ErrorType ShannonRequestErrorType `` /* 132-byte string literal not displayed */
	// Details of the request error.
	ErrorDetails string `protobuf:"bytes,2,opt,name=error_details,json=errorDetails,proto3" json:"error_details,omitempty"`
	// contains filtered or unexported fields
}

ShannonRequestError stores details of any errors encountered processing the request.

func (*ShannonRequestError) Descriptor deprecated

func (*ShannonRequestError) Descriptor() ([]byte, []int)

Deprecated: Use ShannonRequestError.ProtoReflect.Descriptor instead.

func (*ShannonRequestError) GetErrorDetails

func (x *ShannonRequestError) GetErrorDetails() string

func (*ShannonRequestError) GetErrorType

func (x *ShannonRequestError) GetErrorType() ShannonRequestErrorType

func (*ShannonRequestError) ProtoMessage

func (*ShannonRequestError) ProtoMessage()

func (*ShannonRequestError) ProtoReflect

func (x *ShannonRequestError) ProtoReflect() protoreflect.Message

func (*ShannonRequestError) Reset

func (x *ShannonRequestError) Reset()

func (*ShannonRequestError) String

func (x *ShannonRequestError) String() string

type ShannonRequestErrorType

type ShannonRequestErrorType int32

ShannonRequestErrorType enumerates possible relay request errors.

const (
	ShannonRequestErrorType_SHANNON_REQUEST_ERROR_UNSPECIFIED ShannonRequestErrorType = 0
	ShannonRequestErrorType_SHANNON_REQUEST_ERROR_INTERNAL    ShannonRequestErrorType = 1 // Internal error.
	// No endpoints available for the service
	// Due to one or more of the following:
	// - Any of the gateway mode errors above
	// - Error fetching a session for one or more apps.
	// - One or more available endpoints are below reputation threshold.
	ShannonRequestErrorType_SHANNON_REQUEST_ERROR_INTERNAL_NO_ENDPOINTS_AVAILABLE ShannonRequestErrorType = 2
	// Centralized gateway mode: Error fetching the app.
	ShannonRequestErrorType_SHANNON_REQUEST_ERROR_INTERNAL_CENTRALIZED_MODE_APP_FETCH_ERR ShannonRequestErrorType = 3
	// Centralized gateway mode app does not delegate to the gateway.
	ShannonRequestErrorType_SHANNON_REQUEST_ERROR_INTERNAL_CENTRALIZED_MODE_APP_DELEGATION ShannonRequestErrorType = 4
	// Centralized gateway mode: no active sessions found for service.
	ShannonRequestErrorType_SHANNON_REQUEST_ERROR_INTERNAL_CENTRALIZED_MODE_NO_SESSIONS ShannonRequestErrorType = 5
	// Centralized gateway mode: no apps found for service.
	ShannonRequestErrorType_SHANNON_REQUEST_ERROR_INTERNAL_CENTRALIZED_MODE_NO_APPS_FOR_SERVICE ShannonRequestErrorType = 6
	// Delegated gateway mode: could not extract app address from HTTP request
	ShannonRequestErrorType_SHANNON_REQUEST_ERROR_INTERNAL_DELEGATED_GET_APP_HTTP ShannonRequestErrorType = 7
	// Delegated gateway mode: error fetching the app
	ShannonRequestErrorType_SHANNON_REQUEST_ERROR_INTERNAL_DELEGATED_FETCH_APP ShannonRequestErrorType = 8
	// Delegated gateway mode: app does not delegate to the gateway
	ShannonRequestErrorType_SHANNON_REQUEST_ERROR_INTERNAL_DELEGATED_APP_DOES_NOT_DELEGATE ShannonRequestErrorType = 9
	// Error initializing a signer for the selected gateway mode.
	ShannonRequestErrorType_SHANNON_REQUEST_ERROR_INTERNAL_SIGNER_SETUP_ERROR ShannonRequestErrorType = 10
)

func (ShannonRequestErrorType) Descriptor

func (ShannonRequestErrorType) Enum

func (ShannonRequestErrorType) EnumDescriptor deprecated

func (ShannonRequestErrorType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ShannonRequestErrorType.Descriptor instead.

func (ShannonRequestErrorType) Number

func (ShannonRequestErrorType) String

func (x ShannonRequestErrorType) String() string

func (ShannonRequestErrorType) Type

type ShannonRequestObservations

type ShannonRequestObservations struct {

	// Service ID (i.e. chain ID) for which the observation was made
	ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// Error encountered processing the request, if any.
	RequestError *ShannonRequestError `protobuf:"bytes,2,opt,name=request_error,json=requestError,proto3,oneof" json:"request_error,omitempty"`
	// Observation data - exactly one of the following will be set
	//
	// Types that are valid to be assigned to ObservationData:
	//
	//	*ShannonRequestObservations_HttpObservations
	//	*ShannonRequestObservations_WebsocketConnectionObservation
	//	*ShannonRequestObservations_WebsocketMessageObservation
	ObservationData isShannonRequestObservations_ObservationData `protobuf_oneof:"observation_data"`
	// contains filtered or unexported fields
}

ShannonRequestObservations represents observations collected during the processing of a single Shannon protocol relay request. Next free field: 6

func (*ShannonRequestObservations) Descriptor deprecated

func (*ShannonRequestObservations) Descriptor() ([]byte, []int)

Deprecated: Use ShannonRequestObservations.ProtoReflect.Descriptor instead.

func (*ShannonRequestObservations) GetHttpObservations

func (*ShannonRequestObservations) GetObservationData

func (x *ShannonRequestObservations) GetObservationData() isShannonRequestObservations_ObservationData

func (*ShannonRequestObservations) GetRequestError

func (x *ShannonRequestObservations) GetRequestError() *ShannonRequestError

func (*ShannonRequestObservations) GetServiceId

func (x *ShannonRequestObservations) GetServiceId() string

func (*ShannonRequestObservations) GetWebsocketConnectionObservation

func (x *ShannonRequestObservations) GetWebsocketConnectionObservation() *ShannonWebsocketConnectionObservation

func (*ShannonRequestObservations) GetWebsocketMessageObservation

func (x *ShannonRequestObservations) GetWebsocketMessageObservation() *ShannonWebsocketMessageObservation

func (*ShannonRequestObservations) ProtoMessage

func (*ShannonRequestObservations) ProtoMessage()

func (*ShannonRequestObservations) ProtoReflect

func (*ShannonRequestObservations) Reset

func (x *ShannonRequestObservations) Reset()

func (*ShannonRequestObservations) String

func (x *ShannonRequestObservations) String() string

type ShannonRequestObservations_HttpObservations

type ShannonRequestObservations_HttpObservations struct {
	// HTTP endpoint observations (multiple possible due to retries)
	HttpObservations *ShannonHTTPEndpointObservations `protobuf:"bytes,3,opt,name=http_observations,json=httpObservations,proto3,oneof"`
}

type ShannonRequestObservations_WebsocketConnectionObservation

type ShannonRequestObservations_WebsocketConnectionObservation struct {
	// Single Websocket connection lifecycle observation
	WebsocketConnectionObservation *ShannonWebsocketConnectionObservation `protobuf:"bytes,4,opt,name=websocket_connection_observation,json=websocketConnectionObservation,proto3,oneof"`
}

type ShannonRequestObservations_WebsocketMessageObservation

type ShannonRequestObservations_WebsocketMessageObservation struct {
	// Single Websocket message observation
	WebsocketMessageObservation *ShannonWebsocketMessageObservation `protobuf:"bytes,5,opt,name=websocket_message_observation,json=websocketMessageObservation,proto3,oneof"`
}

type ShannonWebsocketConnectionObservation

type ShannonWebsocketConnectionObservation struct {

	// Supplier of the endpoint handling the Websocket connection
	Supplier string `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier,omitempty"`
	// URL of the Websocket endpoint
	EndpointUrl string `protobuf:"bytes,2,opt,name=endpoint_url,json=endpointUrl,proto3" json:"endpoint_url,omitempty"`
	// Application address associated with the endpoint
	EndpointAppAddress string `protobuf:"bytes,3,opt,name=endpoint_app_address,json=endpointAppAddress,proto3" json:"endpoint_app_address,omitempty"`
	// Service ID of the session associated with the endpoint.
	SessionServiceId string `protobuf:"bytes,4,opt,name=session_service_id,json=sessionServiceId,proto3" json:"session_service_id,omitempty"`
	// Session ID of the session associated with the endpoint.
	SessionId string `protobuf:"bytes,5,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// session start height
	SessionStartHeight int64 `protobuf:"varint,6,opt,name=session_start_height,json=sessionStartHeight,proto3" json:"session_start_height,omitempty"`
	// session end height
	SessionEndHeight int64 `protobuf:"varint,7,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height,omitempty"`
	// Error type if Websocket connection establishment or operation failed
	ErrorType *ShannonEndpointErrorType `` /* 139-byte string literal not displayed */
	// Additional error details when available
	ErrorDetails *string `protobuf:"bytes,9,opt,name=error_details,json=errorDetails,proto3,oneof" json:"error_details,omitempty"`
	// Tracks whether the endpoint is a fallback endpoint
	IsFallbackEndpoint bool `protobuf:"varint,10,opt,name=is_fallback_endpoint,json=isFallbackEndpoint,proto3" json:"is_fallback_endpoint,omitempty"`
	// Connection lifecycle timestamps
	ConnectionEstablishedTimestamp *timestamppb.Timestamp                                    `` /* 154-byte string literal not displayed */
	ConnectionClosedTimestamp      *timestamppb.Timestamp                                    `` /* 145-byte string literal not displayed */
	EventType                      ShannonWebsocketConnectionObservation_ConnectionEventType `` /* 167-byte string literal not displayed */
	// contains filtered or unexported fields
}

ShannonWebsocketConnectionObservation stores observations from a Websocket connection lifecycle

func (*ShannonWebsocketConnectionObservation) Descriptor deprecated

func (*ShannonWebsocketConnectionObservation) Descriptor() ([]byte, []int)

Deprecated: Use ShannonWebsocketConnectionObservation.ProtoReflect.Descriptor instead.

func (*ShannonWebsocketConnectionObservation) GetConnectionClosedTimestamp

func (x *ShannonWebsocketConnectionObservation) GetConnectionClosedTimestamp() *timestamppb.Timestamp

func (*ShannonWebsocketConnectionObservation) GetConnectionEstablishedTimestamp

func (x *ShannonWebsocketConnectionObservation) GetConnectionEstablishedTimestamp() *timestamppb.Timestamp

func (*ShannonWebsocketConnectionObservation) GetEndpointAppAddress

func (x *ShannonWebsocketConnectionObservation) GetEndpointAppAddress() string

func (*ShannonWebsocketConnectionObservation) GetEndpointUrl

func (x *ShannonWebsocketConnectionObservation) GetEndpointUrl() string

func (*ShannonWebsocketConnectionObservation) GetErrorDetails

func (x *ShannonWebsocketConnectionObservation) GetErrorDetails() string

func (*ShannonWebsocketConnectionObservation) GetErrorType

func (*ShannonWebsocketConnectionObservation) GetEventType

func (*ShannonWebsocketConnectionObservation) GetIsFallbackEndpoint

func (x *ShannonWebsocketConnectionObservation) GetIsFallbackEndpoint() bool

func (*ShannonWebsocketConnectionObservation) GetSessionEndHeight

func (x *ShannonWebsocketConnectionObservation) GetSessionEndHeight() int64

func (*ShannonWebsocketConnectionObservation) GetSessionId

func (*ShannonWebsocketConnectionObservation) GetSessionServiceId

func (x *ShannonWebsocketConnectionObservation) GetSessionServiceId() string

func (*ShannonWebsocketConnectionObservation) GetSessionStartHeight

func (x *ShannonWebsocketConnectionObservation) GetSessionStartHeight() int64

func (*ShannonWebsocketConnectionObservation) GetSupplier

func (*ShannonWebsocketConnectionObservation) ProtoMessage

func (*ShannonWebsocketConnectionObservation) ProtoMessage()

func (*ShannonWebsocketConnectionObservation) ProtoReflect

func (*ShannonWebsocketConnectionObservation) Reset

func (*ShannonWebsocketConnectionObservation) String

type ShannonWebsocketConnectionObservation_ConnectionEventType

type ShannonWebsocketConnectionObservation_ConnectionEventType int32

Connection event type to distinguish between establishment and closure

const (
	ShannonWebsocketConnectionObservation_CONNECTION_EVENT_TYPE_UNSPECIFIED ShannonWebsocketConnectionObservation_ConnectionEventType = 0
	ShannonWebsocketConnectionObservation_CONNECTION_ESTABLISHED            ShannonWebsocketConnectionObservation_ConnectionEventType = 1
	ShannonWebsocketConnectionObservation_CONNECTION_CLOSED                 ShannonWebsocketConnectionObservation_ConnectionEventType = 2
	ShannonWebsocketConnectionObservation_CONNECTION_ESTABLISHMENT_FAILED   ShannonWebsocketConnectionObservation_ConnectionEventType = 3
)

func (ShannonWebsocketConnectionObservation_ConnectionEventType) Descriptor

func (ShannonWebsocketConnectionObservation_ConnectionEventType) Enum

func (ShannonWebsocketConnectionObservation_ConnectionEventType) EnumDescriptor deprecated

Deprecated: Use ShannonWebsocketConnectionObservation_ConnectionEventType.Descriptor instead.

func (ShannonWebsocketConnectionObservation_ConnectionEventType) Number

func (ShannonWebsocketConnectionObservation_ConnectionEventType) String

func (ShannonWebsocketConnectionObservation_ConnectionEventType) Type

type ShannonWebsocketMessageObservation

type ShannonWebsocketMessageObservation struct {

	// Supplier of the endpoint handling the Websocket message
	Supplier string `protobuf:"bytes,1,opt,name=supplier,proto3" json:"supplier,omitempty"`
	// URL of the Websocket endpoint
	EndpointUrl string `protobuf:"bytes,2,opt,name=endpoint_url,json=endpointUrl,proto3" json:"endpoint_url,omitempty"`
	// Application address associated with the endpoint
	EndpointAppAddress string `protobuf:"bytes,3,opt,name=endpoint_app_address,json=endpointAppAddress,proto3" json:"endpoint_app_address,omitempty"`
	// Service ID of the session associated with the endpoint.
	SessionServiceId string `protobuf:"bytes,4,opt,name=session_service_id,json=sessionServiceId,proto3" json:"session_service_id,omitempty"`
	// Session ID of the session associated with the endpoint.
	SessionId string `protobuf:"bytes,5,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// session start height
	SessionStartHeight int64 `protobuf:"varint,6,opt,name=session_start_height,json=sessionStartHeight,proto3" json:"session_start_height,omitempty"`
	// session end height
	SessionEndHeight int64 `protobuf:"varint,7,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height,omitempty"`
	// Timestamp marking when the message was sent to the endpoint
	// For subscription events, this represents when the event was received from endpoint
	MessageTimestamp *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=message_timestamp,json=messageTimestamp,proto3" json:"message_timestamp,omitempty"`
	// Size of the message payload in bytes
	MessagePayloadSize int64 `protobuf:"varint,9,opt,name=message_payload_size,json=messagePayloadSize,proto3" json:"message_payload_size,omitempty"`
	// Error type if message processing failed
	ErrorType *ShannonEndpointErrorType `` /* 140-byte string literal not displayed */
	// Additional error details when available
	ErrorDetails *string `protobuf:"bytes,11,opt,name=error_details,json=errorDetails,proto3,oneof" json:"error_details,omitempty"`
	// RelayMiner error details if the endpoint returned a RelayMinerError for this message
	RelayMinerError *ShannonRelayMinerError `protobuf:"bytes,12,opt,name=relay_miner_error,json=relayMinerError,proto3,oneof" json:"relay_miner_error,omitempty"`
	// Tracks whether the endpoint is a fallback endpoint
	IsFallbackEndpoint bool `protobuf:"varint,13,opt,name=is_fallback_endpoint,json=isFallbackEndpoint,proto3" json:"is_fallback_endpoint,omitempty"`
	// contains filtered or unexported fields
}

ShannonWebsocketMessageObservation stores observations from individual Websocket messages

func (*ShannonWebsocketMessageObservation) Descriptor deprecated

func (*ShannonWebsocketMessageObservation) Descriptor() ([]byte, []int)

Deprecated: Use ShannonWebsocketMessageObservation.ProtoReflect.Descriptor instead.

func (*ShannonWebsocketMessageObservation) GetEndpointAppAddress

func (x *ShannonWebsocketMessageObservation) GetEndpointAppAddress() string

func (*ShannonWebsocketMessageObservation) GetEndpointUrl

func (x *ShannonWebsocketMessageObservation) GetEndpointUrl() string

func (*ShannonWebsocketMessageObservation) GetErrorDetails

func (x *ShannonWebsocketMessageObservation) GetErrorDetails() string

func (*ShannonWebsocketMessageObservation) GetErrorType

func (*ShannonWebsocketMessageObservation) GetIsFallbackEndpoint

func (x *ShannonWebsocketMessageObservation) GetIsFallbackEndpoint() bool

func (*ShannonWebsocketMessageObservation) GetMessagePayloadSize

func (x *ShannonWebsocketMessageObservation) GetMessagePayloadSize() int64

func (*ShannonWebsocketMessageObservation) GetMessageTimestamp

func (x *ShannonWebsocketMessageObservation) GetMessageTimestamp() *timestamppb.Timestamp

func (*ShannonWebsocketMessageObservation) GetRelayMinerError

func (*ShannonWebsocketMessageObservation) GetSessionEndHeight

func (x *ShannonWebsocketMessageObservation) GetSessionEndHeight() int64

func (*ShannonWebsocketMessageObservation) GetSessionId

func (x *ShannonWebsocketMessageObservation) GetSessionId() string

func (*ShannonWebsocketMessageObservation) GetSessionServiceId

func (x *ShannonWebsocketMessageObservation) GetSessionServiceId() string

func (*ShannonWebsocketMessageObservation) GetSessionStartHeight

func (x *ShannonWebsocketMessageObservation) GetSessionStartHeight() int64

func (*ShannonWebsocketMessageObservation) GetSupplier

func (x *ShannonWebsocketMessageObservation) GetSupplier() string

func (*ShannonWebsocketMessageObservation) ProtoMessage

func (*ShannonWebsocketMessageObservation) ProtoMessage()

func (*ShannonWebsocketMessageObservation) ProtoReflect

func (*ShannonWebsocketMessageObservation) Reset

func (*ShannonWebsocketMessageObservation) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL