package rawtopic
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/grpcwrapper/rawtopic"
Index ¶
- Constants
- type AlterConsumer
- type AlterPartitioningSettings
- type AlterTopicRequest
- type AlterTopicResult
- type Client
- func NewClient(service Ydb_Topic_V1.TopicServiceClient) Client
- func (c *Client) AlterTopic(ctx context.Context, req *AlterTopicRequest) (res AlterTopicResult, err error)
- func (c *Client) CreateTopic( ctx context.Context, req *CreateTopicRequest, ) (res CreateTopicResult, err error)
- func (c *Client) DescribeTopic(ctx context.Context, req DescribeTopicRequest) (res DescribeTopicResult, err error)
- func (c *Client) DropTopic( ctx context.Context, req DropTopicRequest, ) (res DropTopicResult, err error)
- func (c *Client) StreamRead(ctxStreamLifeTime context.Context) (rawtopicreader.StreamReader, error)
- func (c *Client) StreamWrite(ctxStreamLifeTime context.Context) (*rawtopicwriter.StreamWriter, error)
- func (c *Client) UpdateOffsetsInTransaction( ctx context.Context, req *UpdateOffsetsInTransactionRequest, ) error
- type Consumer
- func (c *Consumer) MustFromProto(consumer *Ydb_Topic.Consumer)
- func (c *Consumer) ToProto() *Ydb_Topic.Consumer
- type CreateTopicRequest
- type CreateTopicResult
- type DescribeTopicRequest
- type DescribeTopicResult
- type DropTopicRequest
- type DropTopicResult
- type MeteringMode
- type PartitionInfo
- type PartitioningSettings
- func (s *PartitioningSettings) FromProto(proto *Ydb_Topic.PartitioningSettings) error
- func (s *PartitioningSettings) ToProto() *Ydb_Topic.PartitioningSettings
- type UpdateOffsetsInTransactionRequest
- type UpdateOffsetsInTransactionRequest_PartitionOffsets
- type UpdateOffsetsInTransactionRequest_TopicOffsets
- type UpdateOffsetsInTransactionRequest_TransactionIdentity
Constants ¶
const ( MeteringModeUnspecified = MeteringMode(Ydb_Topic.MeteringMode_METERING_MODE_UNSPECIFIED) MeteringModeReservedCapacity = MeteringMode(Ydb_Topic.MeteringMode_METERING_MODE_RESERVED_CAPACITY) MeteringModeRequestUnits = MeteringMode(Ydb_Topic.MeteringMode_METERING_MODE_REQUEST_UNITS) )
Types ¶
type AlterConsumer ¶
type AlterConsumer struct { Name string SetImportant rawoptional.Bool SetReadFrom rawoptional.Time SetSupportedCodecs rawtopiccommon.SupportedCodecs AlterAttributes map[string]string }
func (*AlterConsumer) ToProto ¶
func (c *AlterConsumer) ToProto() *Ydb_Topic.AlterConsumer
type AlterPartitioningSettings ¶
type AlterPartitioningSettings struct { SetMinActivePartitions rawoptional.Int64 SetPartitionCountLimit rawoptional.Int64 }
func (*AlterPartitioningSettings) ToProto ¶
func (s *AlterPartitioningSettings) ToProto() *Ydb_Topic.AlterPartitioningSettings
type AlterTopicRequest ¶
type AlterTopicRequest struct { OperationParams rawydb.OperationParams Path string AlterPartitionSettings AlterPartitioningSettings SetRetentionPeriod rawoptional.Duration SetRetentionStorageMB rawoptional.Int64 SetSupportedCodecs bool SetSupportedCodecsValue rawtopiccommon.SupportedCodecs SetPartitionWriteSpeedBytesPerSecond rawoptional.Int64 SetPartitionWriteBurstBytes rawoptional.Int64 AlterAttributes map[string]string AddConsumers []Consumer DropConsumers []string AlterConsumers []AlterConsumer SetMeteringMode MeteringMode }
func (*AlterTopicRequest) ToProto ¶
func (req *AlterTopicRequest) ToProto() *Ydb_Topic.AlterTopicRequest
type AlterTopicResult ¶
func (*AlterTopicResult) FromProto ¶
func (r *AlterTopicResult) FromProto(proto *Ydb_Topic.AlterTopicResponse) error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(service Ydb_Topic_V1.TopicServiceClient) Client
func (*Client) AlterTopic ¶
func (c *Client) AlterTopic(ctx context.Context, req *AlterTopicRequest) (res AlterTopicResult, err error)
func (*Client) CreateTopic ¶
func (c *Client) CreateTopic( ctx context.Context, req *CreateTopicRequest, ) (res CreateTopicResult, err error)
func (*Client) DescribeTopic ¶
func (c *Client) DescribeTopic(ctx context.Context, req DescribeTopicRequest) (res DescribeTopicResult, err error)
func (*Client) DropTopic ¶
func (c *Client) DropTopic( ctx context.Context, req DropTopicRequest, ) (res DropTopicResult, err error)
func (*Client) StreamRead ¶
func (c *Client) StreamRead(ctxStreamLifeTime context.Context) (rawtopicreader.StreamReader, error)
func (*Client) StreamWrite ¶
func (c *Client) StreamWrite(ctxStreamLifeTime context.Context) (*rawtopicwriter.StreamWriter, error)
func (*Client) UpdateOffsetsInTransaction ¶
func (c *Client) UpdateOffsetsInTransaction( ctx context.Context, req *UpdateOffsetsInTransactionRequest, ) error
type Consumer ¶
type Consumer struct { Name string Important bool SupportedCodecs rawtopiccommon.SupportedCodecs ReadFrom rawoptional.Time Attributes map[string]string }
func (*Consumer) MustFromProto ¶
func (*Consumer) ToProto ¶
type CreateTopicRequest ¶
type CreateTopicRequest struct { OperationParams rawydb.OperationParams Path string PartitionSettings PartitioningSettings RetentionPeriod time.Duration RetentionStorageMB int64 SupportedCodecs rawtopiccommon.SupportedCodecs PartitionWriteSpeedBytesPerSecond int64 PartitionWriteBurstBytes int64 Attributes map[string]string Consumers []Consumer MeteringMode MeteringMode }
func (*CreateTopicRequest) ToProto ¶
func (req *CreateTopicRequest) ToProto() *Ydb_Topic.CreateTopicRequest
type CreateTopicResult ¶
func (*CreateTopicResult) FromProto ¶
func (r *CreateTopicResult) FromProto(proto *Ydb_Topic.CreateTopicResponse) error
type DescribeTopicRequest ¶
type DescribeTopicRequest struct { OperationParams rawydb.OperationParams Path string }
func (*DescribeTopicRequest) ToProto ¶
func (req *DescribeTopicRequest) ToProto() *Ydb_Topic.DescribeTopicRequest
type DescribeTopicResult ¶
type DescribeTopicResult struct { Operation rawydb.Operation Self rawscheme.Entry PartitioningSettings PartitioningSettings Partitions []PartitionInfo RetentionPeriod time.Duration RetentionStorageMB int64 SupportedCodecs rawtopiccommon.SupportedCodecs PartitionWriteSpeedBytesPerSecond int64 PartitionWriteBurstBytes int64 Attributes map[string]string Consumers []Consumer MeteringMode MeteringMode }
func (*DescribeTopicResult) FromProto ¶
func (res *DescribeTopicResult) FromProto(response operation.Response) error
type DropTopicRequest ¶
type DropTopicRequest struct { OperationParams rawydb.OperationParams Path string }
func (*DropTopicRequest) ToProto ¶
func (req *DropTopicRequest) ToProto() *Ydb_Topic.DropTopicRequest
type DropTopicResult ¶
func (*DropTopicResult) FromProto ¶
func (r *DropTopicResult) FromProto(proto *Ydb_Topic.DropTopicResponse) error
type MeteringMode ¶
type MeteringMode int
type PartitionInfo ¶
type PartitionInfo struct { PartitionID int64 Active bool ChildPartitionIDs []int64 ParentPartitionIDs []int64 }
type PartitioningSettings ¶
func (*PartitioningSettings) FromProto ¶
func (s *PartitioningSettings) FromProto(proto *Ydb_Topic.PartitioningSettings) error
func (*PartitioningSettings) ToProto ¶
func (s *PartitioningSettings) ToProto() *Ydb_Topic.PartitioningSettings
type UpdateOffsetsInTransactionRequest ¶
type UpdateOffsetsInTransactionRequest struct { OperationParams rawydb.OperationParams Tx UpdateOffsetsInTransactionRequest_TransactionIdentity Topics []UpdateOffsetsInTransactionRequest_TopicOffsets Consumer string }
func (*UpdateOffsetsInTransactionRequest) ToProto ¶
func (r *UpdateOffsetsInTransactionRequest) ToProto() *Ydb_Topic.UpdateOffsetsInTransactionRequest
type UpdateOffsetsInTransactionRequest_PartitionOffsets ¶
type UpdateOffsetsInTransactionRequest_PartitionOffsets struct { PartitionID int64 PartitionOffsets []rawtopiccommon.OffsetRange }
type UpdateOffsetsInTransactionRequest_TopicOffsets ¶
type UpdateOffsetsInTransactionRequest_TopicOffsets struct { Path string // Topic path Partitions []UpdateOffsetsInTransactionRequest_PartitionOffsets }
type UpdateOffsetsInTransactionRequest_TransactionIdentity ¶
Source Files ¶
alter_topic.go client.go controlplane_types.go create_topic.go describe_topic.go drop_topic.go update_offset_in_transaction.go
Directories ¶
- Version
- v3.77.0
- Published
- Aug 22, 2024
- Platform
- linux/amd64
- Imports
- 16 packages
- Last checked
- 23 seconds ago –
Tools for package owners.