rawtopiccommon

package
v3.89.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CodecUNSPECIFIED Codec = iota
	CodecRaw               = Codec(Ydb_Topic.Codec_CODEC_RAW)
	CodecGzip              = Codec(Ydb_Topic.Codec_CODEC_GZIP)
	CodecLzop              = Codec(Ydb_Topic.Codec_CODEC_LZOP)
	CodecZstd              = Codec(Ydb_Topic.Codec_CODEC_ZSTD)
)
View Source
const (
	CodecCustomerFirst = 10000
	CodecCustomerEnd   = 20000 // last allowed custom codec id is 19999
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec int32

Codec any int value, for example for custom codec

func (Codec) IsCustomerCodec

func (c Codec) IsCustomerCodec() bool

func (*Codec) MustFromProto

func (c *Codec) MustFromProto(codec Ydb_Topic.Codec)

func (Codec) ToInt32 added in v3.38.0

func (c Codec) ToInt32() int32

func (Codec) ToProto

func (c Codec) ToProto() Ydb_Topic.Codec

type MetadataItem added in v3.54.3

type MetadataItem struct {
	Key   string
	Value []byte
}

type Offset added in v3.76.2

type Offset int64

func NewOffset added in v3.76.2

func NewOffset(v int64) Offset

func (*Offset) FromInt64 added in v3.76.2

func (offset *Offset) FromInt64(v int64)

func (Offset) ToInt64 added in v3.76.2

func (offset Offset) ToInt64() int64

type OffsetRange added in v3.76.2

type OffsetRange struct {
	Start Offset
	End   Offset
}

func (*OffsetRange) FromProto added in v3.76.2

func (r *OffsetRange) FromProto(p *Ydb_Topic.OffsetsRange) error

func (*OffsetRange) ToProto added in v3.76.2

func (r *OffsetRange) ToProto() *Ydb_Topic.OffsetsRange

type ServerMessageMetadata

type ServerMessageMetadata struct {
	Status rawydb.StatusCode
	Issues rawydb.Issues
}

func (*ServerMessageMetadata) MetaFromStatusAndIssues

func (m *ServerMessageMetadata) MetaFromStatusAndIssues(p StatusAndIssues) error

func (*ServerMessageMetadata) SetStatus

func (m *ServerMessageMetadata) SetStatus(status rawydb.StatusCode)

func (*ServerMessageMetadata) StatusData

type StatusAndIssues

type StatusAndIssues interface {
	GetStatus() Ydb.StatusIds_StatusCode
	GetIssues() []*Ydb_Issue.IssueMessage
}

type SupportedCodecs

type SupportedCodecs []Codec

func (*SupportedCodecs) AllowedByCodecsList added in v3.38.0

func (c *SupportedCodecs) AllowedByCodecsList(need Codec) bool

func (*SupportedCodecs) Clone added in v3.38.0

func (c *SupportedCodecs) Clone() SupportedCodecs

func (*SupportedCodecs) Contains added in v3.38.0

func (c *SupportedCodecs) Contains(need Codec) bool

func (*SupportedCodecs) IsEqualsTo added in v3.38.0

func (c *SupportedCodecs) IsEqualsTo(other SupportedCodecs) bool

func (*SupportedCodecs) MustFromProto

func (c *SupportedCodecs) MustFromProto(proto *Ydb_Topic.SupportedCodecs)

func (*SupportedCodecs) ToProto

type TransactionIdentity added in v3.81.0

type TransactionIdentity struct {
	ID      string
	Session string
}

func (TransactionIdentity) ToProto added in v3.81.0

type UpdateTokenRequest

type UpdateTokenRequest struct {
	Token string
}

func (*UpdateTokenRequest) ToProto added in v3.38.0

type UpdateTokenResponse

type UpdateTokenResponse struct{}

func (*UpdateTokenResponse) MustFromProto added in v3.38.0

func (r *UpdateTokenResponse) MustFromProto(p *Ydb_Topic.UpdateTokenResponse)

Jump to

Keyboard shortcuts

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