package topictypes

import "github.com/ydb-platform/ydb-go-sdk/v3/topic/topictypes"

Index

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

func (c *Consumer) FromRaw(raw *rawtopic.Consumer)

FromRaw

Experimental

Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.

func (*Consumer) ToRaw

func (c *Consumer) ToRaw(raw *rawtopic.Consumer)

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

type PartitionSettings struct {
	MinActivePartitions int64
	PartitionCountLimit int64
}

PartitionSettings

Experimental

Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.

func (*PartitionSettings) FromRaw

FromRaw

Experimental

Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.

func (*PartitionSettings) ToRaw

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

FromRaw

Experimental

Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.

Source Files

topictypes.go

Version
v3.44.2
Published
Apr 22, 2023
Platform
linux/amd64
Imports
4 packages
Last checked
17 minutes ago

Tools for package owners.