Documentation ¶
Index ¶
- Constants
- type Codec
- type ServerMessageMetadata
- type StatusAndIssues
- type SupportedCodecs
- func (c *SupportedCodecs) AllowedByCodecsList(need Codec) bool
- func (c *SupportedCodecs) Clone() SupportedCodecs
- func (c *SupportedCodecs) Contains(need Codec) bool
- func (c *SupportedCodecs) IsEqualsTo(other SupportedCodecs) bool
- func (c *SupportedCodecs) MustFromProto(proto *Ydb_Topic.SupportedCodecs)
- func (c *SupportedCodecs) ToProto() *Ydb_Topic.SupportedCodecs
- type UpdateTokenRequest
- type UpdateTokenResponse
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 int
Codec any int value, for example for custom codec
func (Codec) IsCustomerCodec ¶
func (*Codec) MustFromProto ¶
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 ¶
func (m *ServerMessageMetadata) StatusData() ServerMessageMetadata
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 ¶
func (c *SupportedCodecs) ToProto() *Ydb_Topic.SupportedCodecs
type UpdateTokenRequest ¶
type UpdateTokenRequest struct {
Token string
}
func (*UpdateTokenRequest) ToProto ¶ added in v3.38.0
func (r *UpdateTokenRequest) ToProto() *Ydb_Topic.UpdateTokenRequest
type UpdateTokenResponse ¶
type UpdateTokenResponse struct{}
func (*UpdateTokenResponse) MustFromProto ¶ added in v3.38.0
func (r *UpdateTokenResponse) MustFromProto(p *Ydb_Topic.UpdateTokenResponse)
Click to show internal directories.
Click to hide internal directories.