Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ring ¶
type Ring struct {
// contains filtered or unexported fields
}
func (*Ring) ForceBatchOrShard ¶
func (ring *Ring) ForceBatchOrShard(_ interface{})
func (*Ring) MakeRoom ¶
func (ring *Ring) MakeRoom(newMsg *model.InputMessage)
func (*Ring) PutMsgNolock ¶
func (ring *Ring) PutMsgNolock(msg *model.InputMessage)
assumes ring.mux is locked, and msg.Offset is in range [ring.ringGroundOff, ring.ringGroundOff+ring.ringCap)
type Service ¶
TaskService holds the configuration for each task
func NewTaskService ¶
func NewTaskService(cfg *config.Config, taskCfg *config.TaskConfig) (service *Service)
NewTaskService creates an instance of new tasks with kafka, clickhouse and paser instances
type Sharder ¶
type Sharder struct {
// contains filtered or unexported fields
}
func NewSharder ¶
func (*Sharder) ForceFlush ¶
func (sh *Sharder) ForceFlush(arg interface{})
type ShardingPolicy ¶
type ShardingPolicy struct {
// contains filtered or unexported fields
}
func NewShardingPolicy ¶
func NewShardingPolicy(shardingKey string, shardingStripe uint64, dims []*model.ColumnWithType, shards int) (policy *ShardingPolicy, err error)
Click to show internal directories.
Click to hide internal directories.