internal

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Compression_name = map[int32]string{
		0: "COMPRESSION_NONE",
		1: "COMPRESSION_GZIP",
	}
	Compression_value = map[string]int32{
		"COMPRESSION_NONE": 0,
		"COMPRESSION_GZIP": 1,
	}
)

Enum value maps for Compression.

View Source
var File_internal_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Channel added in v0.6.0

type Channel struct {
	Channel string `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel,omitempty"`
	// contains filtered or unexported fields
}

func (*Channel) Descriptor deprecated added in v0.6.0

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

Deprecated: Use Channel.ProtoReflect.Descriptor instead.

func (*Channel) GetChannel added in v0.6.0

func (x *Channel) GetChannel() string

func (*Channel) ProtoMessage added in v0.6.0

func (*Channel) ProtoMessage()

func (*Channel) ProtoReflect added in v0.6.0

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

func (*Channel) Reset added in v0.6.0

func (x *Channel) Reset()

func (*Channel) String added in v0.6.0

func (x *Channel) String() string

type ClaimRequest

type ClaimRequest struct {
	RequestId string  `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	ServerId  string  `protobuf:"bytes,2,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	Affinity  float32 `protobuf:"fixed32,3,opt,name=affinity,proto3" json:"affinity,omitempty"`
	// Handling has begun and no ClaimResponse is awaited. Announced so the caller
	// can tell a slow handler from a request nobody received.
	Handling bool `protobuf:"varint,4,opt,name=handling,proto3" json:"handling,omitempty"`
	// contains filtered or unexported fields
}

func (*ClaimRequest) Descriptor deprecated

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

Deprecated: Use ClaimRequest.ProtoReflect.Descriptor instead.

func (*ClaimRequest) GetAffinity

func (x *ClaimRequest) GetAffinity() float32

func (*ClaimRequest) GetHandling added in v0.7.4

func (x *ClaimRequest) GetHandling() bool

func (*ClaimRequest) GetRequestId

func (x *ClaimRequest) GetRequestId() string

func (*ClaimRequest) GetServerId

func (x *ClaimRequest) GetServerId() string

func (*ClaimRequest) ProtoMessage

func (*ClaimRequest) ProtoMessage()

func (*ClaimRequest) ProtoReflect

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

func (*ClaimRequest) Reset

func (x *ClaimRequest) Reset()

func (*ClaimRequest) String

func (x *ClaimRequest) String() string

type ClaimResponse

type ClaimResponse struct {
	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	ServerId  string `protobuf:"bytes,2,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ClaimResponse) Descriptor deprecated

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

Deprecated: Use ClaimResponse.ProtoReflect.Descriptor instead.

func (*ClaimResponse) GetRequestId

func (x *ClaimResponse) GetRequestId() string

func (*ClaimResponse) GetServerId

func (x *ClaimResponse) GetServerId() string

func (*ClaimResponse) ProtoMessage

func (*ClaimResponse) ProtoMessage()

func (*ClaimResponse) ProtoReflect

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

func (*ClaimResponse) Reset

func (x *ClaimResponse) Reset()

func (*ClaimResponse) String

func (x *ClaimResponse) String() string

type Compression added in v0.7.6

type Compression int32
const (
	Compression_COMPRESSION_NONE Compression = 0
	Compression_COMPRESSION_GZIP Compression = 1
)

func (Compression) Descriptor added in v0.7.6

func (Compression) Enum added in v0.7.6

func (x Compression) Enum() *Compression

func (Compression) EnumDescriptor deprecated added in v0.7.6

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

Deprecated: Use Compression.Descriptor instead.

func (Compression) Number added in v0.7.6

func (x Compression) Number() protoreflect.EnumNumber

func (Compression) String added in v0.7.6

func (x Compression) String() string

func (Compression) Type added in v0.7.6

type Content added in v0.7.6

type Content struct {
	TypeUrl     string      `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"`
	Value       []byte      `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Compression Compression `protobuf:"varint,4,opt,name=compression,proto3,enum=internal.Compression" json:"compression,omitempty"`
	// contains filtered or unexported fields
}

Read view of Msg, minus channel. Field numbers must match Msg.

func (*Content) Descriptor deprecated added in v0.7.6

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

Deprecated: Use Content.ProtoReflect.Descriptor instead.

func (*Content) GetCompression added in v0.7.6

func (x *Content) GetCompression() Compression

func (*Content) GetTypeUrl added in v0.7.6

func (x *Content) GetTypeUrl() string

func (*Content) GetValue added in v0.7.6

func (x *Content) GetValue() []byte

func (*Content) ProtoMessage added in v0.7.6

func (*Content) ProtoMessage()

func (*Content) ProtoReflect added in v0.7.6

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

func (*Content) Reset added in v0.7.6

func (x *Content) Reset()

func (*Content) String added in v0.7.6

func (x *Content) String() string

type Msg added in v0.6.0

type Msg struct {
	TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"`
	Value   []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Channel string `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel,omitempty"`
	// Encoding of value.
	Compression Compression `protobuf:"varint,4,opt,name=compression,proto3,enum=internal.Compression" json:"compression,omitempty"`
	// contains filtered or unexported fields
}

func (*Msg) Descriptor deprecated added in v0.6.0

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

Deprecated: Use Msg.ProtoReflect.Descriptor instead.

func (*Msg) GetChannel added in v0.6.0

func (x *Msg) GetChannel() string

func (*Msg) GetCompression added in v0.7.6

func (x *Msg) GetCompression() Compression

func (*Msg) GetTypeUrl added in v0.6.0

func (x *Msg) GetTypeUrl() string

func (*Msg) GetValue added in v0.6.0

func (x *Msg) GetValue() []byte

func (*Msg) ProtoMessage added in v0.6.0

func (*Msg) ProtoMessage()

func (*Msg) ProtoReflect added in v0.6.0

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

func (*Msg) Reset added in v0.6.0

func (x *Msg) Reset()

func (*Msg) String added in v0.6.0

func (x *Msg) String() string

type Request

type Request struct {
	RequestId  string            `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	ClientId   string            `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	SentAt     int64             `protobuf:"varint,3,opt,name=sent_at,json=sentAt,proto3" json:"sent_at,omitempty"`
	Expiry     int64             `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
	Multi      bool              `protobuf:"varint,5,opt,name=multi,proto3" json:"multi,omitempty"`
	Request    *anypb.Any        `protobuf:"bytes,6,opt,name=request,proto3" json:"request,omitempty"`
	Metadata   map[string]string `` /* 143-byte string literal not displayed */
	RawRequest []byte            `protobuf:"bytes,8,opt,name=raw_request,json=rawRequest,proto3" json:"raw_request,omitempty"`
	// Advertises that an announcement may replace the claim; the server decides.
	SkipClaim bool `protobuf:"varint,10,opt,name=skip_claim,json=skipClaim,proto3" json:"skip_claim,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetClientId

func (x *Request) GetClientId() string

func (*Request) GetExpiry

func (x *Request) GetExpiry() int64

func (*Request) GetMetadata added in v0.2.8

func (x *Request) GetMetadata() map[string]string

func (*Request) GetMulti

func (x *Request) GetMulti() bool

func (*Request) GetRawRequest added in v0.2.9

func (x *Request) GetRawRequest() []byte

func (*Request) GetRequest

func (x *Request) GetRequest() *anypb.Any

func (*Request) GetRequestId

func (x *Request) GetRequestId() string

func (*Request) GetSentAt

func (x *Request) GetSentAt() int64

func (*Request) GetSkipClaim added in v0.7.4

func (x *Request) GetSkipClaim() bool

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {
	RequestId    string       `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	ServerId     string       `protobuf:"bytes,2,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	SentAt       int64        `protobuf:"varint,3,opt,name=sent_at,json=sentAt,proto3" json:"sent_at,omitempty"`
	Response     *anypb.Any   `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"`
	Error        string       `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	Code         string       `protobuf:"bytes,6,opt,name=code,proto3" json:"code,omitempty"`
	RawResponse  []byte       `protobuf:"bytes,7,opt,name=raw_response,json=rawResponse,proto3" json:"raw_response,omitempty"`
	ErrorDetails []*anypb.Any `protobuf:"bytes,8,rep,name=error_details,json=errorDetails,proto3" json:"error_details,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetCode added in v0.2.3

func (x *Response) GetCode() string

func (*Response) GetError

func (x *Response) GetError() string

func (*Response) GetErrorDetails added in v0.7.0

func (x *Response) GetErrorDetails() []*anypb.Any

func (*Response) GetRawResponse added in v0.2.9

func (x *Response) GetRawResponse() []byte

func (*Response) GetRequestId

func (x *Response) GetRequestId() string

func (*Response) GetResponse

func (x *Response) GetResponse() *anypb.Any

func (*Response) GetSentAt

func (x *Response) GetSentAt() int64

func (*Response) GetServerId

func (x *Response) GetServerId() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type Stream added in v0.2.5

type Stream struct {
	StreamId  string `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
	RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	SentAt    int64  `protobuf:"varint,3,opt,name=sent_at,json=sentAt,proto3" json:"sent_at,omitempty"`
	Expiry    int64  `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// Types that are valid to be assigned to Body:
	//
	//	*Stream_Open
	//	*Stream_Message
	//	*Stream_Ack
	//	*Stream_Close
	Body isStream_Body `protobuf_oneof:"body"`
	// contains filtered or unexported fields
}

func (*Stream) Descriptor deprecated added in v0.2.5

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

Deprecated: Use Stream.ProtoReflect.Descriptor instead.

func (*Stream) GetAck added in v0.2.5

func (x *Stream) GetAck() *StreamAck

func (*Stream) GetBody added in v0.2.5

func (x *Stream) GetBody() isStream_Body

func (*Stream) GetClose added in v0.2.5

func (x *Stream) GetClose() *StreamClose

func (*Stream) GetExpiry added in v0.2.5

func (x *Stream) GetExpiry() int64

func (*Stream) GetMessage added in v0.2.5

func (x *Stream) GetMessage() *StreamMessage

func (*Stream) GetOpen added in v0.2.5

func (x *Stream) GetOpen() *StreamOpen

func (*Stream) GetRequestId added in v0.2.5

func (x *Stream) GetRequestId() string

func (*Stream) GetSentAt added in v0.2.5

func (x *Stream) GetSentAt() int64

func (*Stream) GetStreamId added in v0.2.5

func (x *Stream) GetStreamId() string

func (*Stream) ProtoMessage added in v0.2.5

func (*Stream) ProtoMessage()

func (*Stream) ProtoReflect added in v0.2.5

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

func (*Stream) Reset added in v0.2.5

func (x *Stream) Reset()

func (*Stream) String added in v0.2.5

func (x *Stream) String() string

type StreamAck added in v0.2.5

type StreamAck struct {
	// contains filtered or unexported fields
}

func (*StreamAck) Descriptor deprecated added in v0.2.5

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

Deprecated: Use StreamAck.ProtoReflect.Descriptor instead.

func (*StreamAck) ProtoMessage added in v0.2.5

func (*StreamAck) ProtoMessage()

func (*StreamAck) ProtoReflect added in v0.2.5

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

func (*StreamAck) Reset added in v0.2.5

func (x *StreamAck) Reset()

func (*StreamAck) String added in v0.2.5

func (x *StreamAck) String() string

type StreamClose added in v0.2.5

type StreamClose struct {
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	Code  string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamClose) Descriptor deprecated added in v0.2.5

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

Deprecated: Use StreamClose.ProtoReflect.Descriptor instead.

func (*StreamClose) GetCode added in v0.2.5

func (x *StreamClose) GetCode() string

func (*StreamClose) GetError added in v0.2.5

func (x *StreamClose) GetError() string

func (*StreamClose) ProtoMessage added in v0.2.5

func (*StreamClose) ProtoMessage()

func (*StreamClose) ProtoReflect added in v0.2.5

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

func (*StreamClose) Reset added in v0.2.5

func (x *StreamClose) Reset()

func (*StreamClose) String added in v0.2.5

func (x *StreamClose) String() string

type StreamMessage added in v0.2.5

type StreamMessage struct {
	Message    *anypb.Any `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	RawMessage []byte     `protobuf:"bytes,2,opt,name=raw_message,json=rawMessage,proto3" json:"raw_message,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamMessage) Descriptor deprecated added in v0.2.5

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

Deprecated: Use StreamMessage.ProtoReflect.Descriptor instead.

func (*StreamMessage) GetMessage added in v0.2.5

func (x *StreamMessage) GetMessage() *anypb.Any

func (*StreamMessage) GetRawMessage added in v0.2.9

func (x *StreamMessage) GetRawMessage() []byte

func (*StreamMessage) ProtoMessage added in v0.2.5

func (*StreamMessage) ProtoMessage()

func (*StreamMessage) ProtoReflect added in v0.2.5

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

func (*StreamMessage) Reset added in v0.2.5

func (x *StreamMessage) Reset()

func (*StreamMessage) String added in v0.2.5

func (x *StreamMessage) String() string

type StreamOpen added in v0.2.5

type StreamOpen struct {
	NodeId   string            `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	Metadata map[string]string `` /* 143-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*StreamOpen) Descriptor deprecated added in v0.2.5

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

Deprecated: Use StreamOpen.ProtoReflect.Descriptor instead.

func (*StreamOpen) GetMetadata added in v0.2.8

func (x *StreamOpen) GetMetadata() map[string]string

func (*StreamOpen) GetNodeId added in v0.2.5

func (x *StreamOpen) GetNodeId() string

func (*StreamOpen) ProtoMessage added in v0.2.5

func (*StreamOpen) ProtoMessage()

func (*StreamOpen) ProtoReflect added in v0.2.5

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

func (*StreamOpen) Reset added in v0.2.5

func (x *StreamOpen) Reset()

func (*StreamOpen) String added in v0.2.5

func (x *StreamOpen) String() string

type Stream_Ack added in v0.2.5

type Stream_Ack struct {
	Ack *StreamAck `protobuf:"bytes,8,opt,name=ack,proto3,oneof"`
}

type Stream_Close added in v0.2.5

type Stream_Close struct {
	Close *StreamClose `protobuf:"bytes,9,opt,name=close,proto3,oneof"`
}

type Stream_Message added in v0.2.5

type Stream_Message struct {
	Message *StreamMessage `protobuf:"bytes,7,opt,name=message,proto3,oneof"`
}

type Stream_Open added in v0.2.5

type Stream_Open struct {
	Open *StreamOpen `protobuf:"bytes,6,opt,name=open,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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