package topictypes
import "github.com/ydb-platform/ydb-go-sdk/v3/topic/topictypes"
Index ¶
- Constants
- type Codec
- type Consumer
- type MeteringMode
- func (m *MeteringMode) FromRaw(raw rawtopic.MeteringMode)
- func (m *MeteringMode) ToRaw(raw *rawtopic.MeteringMode)
- type PartitionInfo
- type PartitionSettings
- func (s *PartitionSettings) FromRaw(raw *rawtopic.PartitioningSettings)
- func (s *PartitionSettings) ToRaw(raw *rawtopic.PartitioningSettings)
- type TopicDescription
Constants ¶
const ( CodecRaw = Codec(rawtopiccommon.CodecRaw) CodecGzip = Codec(rawtopiccommon.CodecGzip) // CodecLzop not supported by default, customer need provide own codec library CodecLzop = Codec(rawtopiccommon.CodecLzop) // CodecZstd not supported by default, customer need provide own codec library CodecZstd = Codec(rawtopiccommon.CodecZstd) CodecCustomerFirst = Codec(rawtopiccommon.CodecCustomerFirst) CodecCustomerEnd = Codec(rawtopiccommon.CodecCustomerEnd) // last allowed custom codec id is CodecCustomerEnd-1 )
const ( MeteringModeUnspecified = MeteringMode(rawtopic.MeteringModeUnspecified) MeteringModeReservedCapacity = MeteringMode(rawtopic.MeteringModeReservedCapacity) MeteringModeRequestUnits = MeteringMode(rawtopic.MeteringModeRequestUnits) )
Types ¶
type Codec ¶
type Codec int
Codec
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (Codec) ToRaw ¶
func (c Codec) ToRaw(r *rawtopiccommon.Codec)
type Consumer ¶
type Consumer struct { Name string Important bool SupportedCodecs []Codec ReadFrom time.Time Attributes map[string]string }
Consumer
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (*Consumer) FromRaw ¶
FromRaw
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (*Consumer) ToRaw ¶
ToRaw
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
type MeteringMode ¶
type MeteringMode int
MeteringMode
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (*MeteringMode) FromRaw ¶
func (m *MeteringMode) FromRaw(raw rawtopic.MeteringMode)
FromRaw
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (*MeteringMode) ToRaw ¶
func (m *MeteringMode) ToRaw(raw *rawtopic.MeteringMode)
ToRaw
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
type PartitionInfo ¶
type PartitionInfo struct { PartitionID int64 Active bool ChildPartitionIDs []int64 ParentPartitionIDs []int64 }
PartitionInfo
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (*PartitionInfo) FromRaw ¶
func (p *PartitionInfo) FromRaw(raw *rawtopic.PartitionInfo)
FromRaw
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
type PartitionSettings ¶
PartitionSettings
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (*PartitionSettings) FromRaw ¶
func (s *PartitionSettings) FromRaw(raw *rawtopic.PartitioningSettings)
FromRaw
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (*PartitionSettings) ToRaw ¶
func (s *PartitionSettings) ToRaw(raw *rawtopic.PartitioningSettings)
ToRaw
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
type TopicDescription ¶
type TopicDescription struct { Path string PartitionSettings PartitionSettings Partitions []PartitionInfo RetentionPeriod time.Duration RetentionStorageMB int64 SupportedCodecs []Codec PartitionWriteBurstBytes int64 PartitionWriteSpeedBytesPerSecond int64 Attributes map[string]string Consumers []Consumer MeteringMode MeteringMode }
TopicDescription
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (*TopicDescription) FromRaw ¶
func (d *TopicDescription) FromRaw(raw *rawtopic.DescribeTopicResult)
FromRaw
Experimental
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
Source Files ¶
- Version
- v3.40.0
- Published
- Nov 18, 2022
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 32 minutes ago –
Tools for package owners.