rawtopiccommon

package
v3.33.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

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 int

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) ToProto

func (c Codec) ToProto() Ydb_Topic.Codec

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) MustFromProto

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

func (SupportedCodecs) ToProto

type UpdateTokenRequest

type UpdateTokenRequest struct {
	Token string
}

type UpdateTokenResponse

type UpdateTokenResponse struct{}

Jump to

Keyboard shortcuts

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