Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct { ID string `gorm:"primaryKey"` TopicID string Group string Position string CreatedAt int64 `gorm:"autoCreateTime"` UpdatedAt int64 `gorm:"autoUpdateTime"` Partitions datatypes.JSONSlice[int64] }
func ConsumerFromProto ¶
func ConsumerFromProto(pc *kayakv1.TopicConsumer) *Consumer
func (*Consumer) GetPartitions ¶
type Record ¶
type Record struct { ID string `gorm:"primaryKey"` TopicID string Partition int64 // Headers map[string]string Headers datatypes.JSONMap Payload []byte UpdatedAt int64 `gorm:"autoUpdateTime"` CreatedAt int64 `gorm:"autoCreateTime"` }
func RecordFromProto ¶
func (*Record) AddHeaders ¶
func (*Record) GetHeaders ¶
type Topic ¶
type Topic struct { ID string `gorm:"primaryKey"` // name PartitionCount int Archived bool DefaultHash string UpdatedAt int64 `gorm:"autoUpdateTime"` CreatedAt int64 `gorm:"autoCreateTime"` Consumers []Consumer TTL int64 }
func TopicFromProto ¶
func (*Topic) MurmurBalancer ¶
func (*Topic) Partitions ¶
func (*Topic) RandomBalancer ¶
Click to show internal directories.
Click to hide internal directories.