mq

package
v0.0.0-...-303e327 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlobDeleteMgr

func NewBlobDeleteMgr(cfg BlobDeleteConfig) (*blobDeleteMgr, error)

NewBlobDeleteMgr returns blob delete manager to handle delete message

func NewShardRepairMgr

func NewShardRepairMgr(cfg ShardRepairConfig) (*shardRepairMgr, error)

NewShardRepairMgr returns shard repair manager

Types

type BlobDeleteConfig

type BlobDeleteConfig struct {
	Topic        string            `json:"topic"`
	MsgSenderCfg kafka.ProducerCfg `json:"msg_sender_cfg"`
}

BlobDeleteConfig is blob delete config

type BlobDeleteHandler

type BlobDeleteHandler interface {
	SendDeleteMsg(ctx context.Context, info *proxy.DeleteArgs) error
}

BlobDeleteHandler stream http handler

type Producer

type Producer interface {
	kafka.MsgProducer
}

Producer is used to send messages to kafka

type ShardRepairConfig

type ShardRepairConfig struct {
	Topic         string            `json:"topic"`
	PriorityTopic string            `json:"priority_topic"`
	MsgSenderCfg  kafka.ProducerCfg `json:"msg_sender_cfg"`
}

ShardRepairConfig is shard repair config

type ShardRepairHandler

type ShardRepairHandler interface {
	SendShardRepairMsg(ctx context.Context, info *proxy.ShardRepairArgs) error
}

ShardRepairHandler stream http handler

Jump to

Keyboard shortcuts

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