Documentation ¶
Index ¶
- Variables
- type Batch
- type ClientMessage
- type CommitOffsetRequest
- type CommitOffsetResponse
- type GrpcStream
- type InitRequest
- type InitResponse
- type MessageData
- type Offset
- type OffsetRange
- type OptionalOffset
- type PartitionCommitOffset
- type PartitionCommittedOffset
- type PartitionData
- type PartitionSession
- type PartitionSessionID
- type PartitionSessionStatusRequest
- type PartitionSessionStatusResponse
- type ReadRequest
- type ReadResponse
- type ServerMessage
- type StartPartitionSessionRequest
- type StartPartitionSessionResponse
- type StopPartitionSessionRequest
- type StopPartitionSessionResponse
- type StreamReader
- type TopicReadSettings
- type UpdateTokenRequest
- type UpdateTokenResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnexpectedMessageType = errors.New("unexpected message type")
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Batch struct { Codec rawtopiccommon.Codec ProducerID string WriteSessionMeta map[string]string // nil if session meta is empty WrittenAt time.Time MessageData []MessageData }
type ClientMessage ¶
type ClientMessage interface {
// contains filtered or unexported methods
}
type CommitOffsetRequest ¶
type CommitOffsetRequest struct { CommitOffsets []PartitionCommitOffset // contains filtered or unexported fields }
type CommitOffsetResponse ¶
type CommitOffsetResponse struct { rawtopiccommon.ServerMessageMetadata PartitionsCommittedOffsets []PartitionCommittedOffset // contains filtered or unexported fields }
type GrpcStream ¶
type GrpcStream interface { Send(messageNew *Ydb_Topic.StreamReadMessage_FromClient) error Recv() (*Ydb_Topic.StreamReadMessage_FromServer, error) CloseSend() error }
type InitRequest ¶
type InitRequest struct { TopicsReadSettings []TopicReadSettings Consumer string // contains filtered or unexported fields }
func (*InitRequest) GetConsumer ¶ added in v3.32.0
func (r *InitRequest) GetConsumer() string
GetConsumer for implement trace.TopicReadStreamInitRequestInfo
func (*InitRequest) GetTopics ¶ added in v3.32.0
func (r *InitRequest) GetTopics() []string
GetTopics for implement trace.TopicReadStreamInitRequestInfo
type InitResponse ¶
type InitResponse struct { rawtopiccommon.ServerMessageMetadata SessionID string // contains filtered or unexported fields }
type MessageData ¶
type OffsetRange ¶
func (*OffsetRange) FromProto ¶
func (r *OffsetRange) FromProto(p *Ydb_Topic.OffsetsRange) error
func (*OffsetRange) ToProto ¶
func (r *OffsetRange) ToProto() *Ydb_Topic.OffsetsRange
type OptionalOffset ¶
func (*OptionalOffset) FromInt64 ¶
func (offset *OptionalOffset) FromInt64(v int64)
func (*OptionalOffset) FromInt64Pointer ¶
func (offset *OptionalOffset) FromInt64Pointer(v *int64)
func (OptionalOffset) ToInt64 ¶
func (offset OptionalOffset) ToInt64() int64
func (OptionalOffset) ToInt64Pointer ¶
func (offset OptionalOffset) ToInt64Pointer() *int64
type PartitionCommitOffset ¶
type PartitionCommitOffset struct { PartitionSessionID PartitionSessionID Offsets []OffsetRange }
type PartitionCommittedOffset ¶
type PartitionCommittedOffset struct { PartitionSessionID PartitionSessionID CommittedOffset Offset }
type PartitionData ¶
type PartitionData struct { PartitionSessionID PartitionSessionID Batches []Batch }
type PartitionSession ¶
type PartitionSession struct { PartitionSessionID PartitionSessionID Path string // Topic path of partition PartitionID int64 }
type PartitionSessionID ¶
type PartitionSessionID int64
func (*PartitionSessionID) FromInt64 ¶
func (id *PartitionSessionID) FromInt64(v int64)
func (PartitionSessionID) ToInt64 ¶
func (id PartitionSessionID) ToInt64() int64
type PartitionSessionStatusRequest ¶
type PartitionSessionStatusRequest struct { PartitionSessionID PartitionSessionID // contains filtered or unexported fields }
type PartitionSessionStatusResponse ¶
type PartitionSessionStatusResponse struct { rawtopiccommon.ServerMessageMetadata PartitionSessionID PartitionSessionID PartitionOffsets OffsetRange WriteTimeHighWatermark time.Time // contains filtered or unexported fields }
type ReadRequest ¶
type ReadRequest struct { BytesSize int // contains filtered or unexported fields }
type ReadResponse ¶
type ReadResponse struct { rawtopiccommon.ServerMessageMetadata BytesSize int PartitionData []PartitionData // contains filtered or unexported fields }
func (*ReadResponse) GetBytesSize ¶ added in v3.32.0
func (r *ReadResponse) GetBytesSize() int
GetBytesSize implements trace.TopicReaderDataResponseInfo
func (*ReadResponse) GetPartitionBatchMessagesCounts ¶ added in v3.32.0
func (r *ReadResponse) GetPartitionBatchMessagesCounts() (partitionDataCount, batchCount, messagesCount int)
GetPartitionBatchMessagesCounts implements trace.TopicReaderDataResponseInfo
type ServerMessage ¶
type ServerMessage interface { StatusData() rawtopiccommon.ServerMessageMetadata SetStatus(status rawydb.StatusCode) // contains filtered or unexported methods }
type StartPartitionSessionRequest ¶
type StartPartitionSessionRequest struct { rawtopiccommon.ServerMessageMetadata PartitionSession PartitionSession CommittedOffset Offset PartitionOffsets OffsetRange // contains filtered or unexported fields }
type StartPartitionSessionResponse ¶
type StartPartitionSessionResponse struct { PartitionSessionID PartitionSessionID ReadOffset OptionalOffset CommitOffset OptionalOffset // contains filtered or unexported fields }
type StopPartitionSessionRequest ¶
type StopPartitionSessionRequest struct { rawtopiccommon.ServerMessageMetadata PartitionSessionID PartitionSessionID Graceful bool CommittedOffset Offset // contains filtered or unexported fields }
type StopPartitionSessionResponse ¶
type StopPartitionSessionResponse struct { PartitionSessionID PartitionSessionID // contains filtered or unexported fields }
type StreamReader ¶
type StreamReader struct {
Stream GrpcStream
}
func (StreamReader) CloseSend ¶
func (s StreamReader) CloseSend() error
func (StreamReader) Recv ¶
func (s StreamReader) Recv() (ServerMessage, error)
func (StreamReader) Send ¶
func (s StreamReader) Send(msg ClientMessage) error
type TopicReadSettings ¶
type TopicReadSettings struct { Path string PartitionsID []int64 MaxLag rawoptional.Duration ReadFrom rawoptional.Time }
type UpdateTokenRequest ¶
type UpdateTokenRequest struct { rawtopiccommon.UpdateTokenRequest // contains filtered or unexported fields }
type UpdateTokenResponse ¶
type UpdateTokenResponse struct { rawtopiccommon.ServerMessageMetadata rawtopiccommon.UpdateTokenResponse // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.