Documentation
¶
Index ¶
Constants ¶
View Source
const ( PromLabelSVC = "service" PromLabelDC = "dc" )
Variables ¶
This section is empty.
Functions ¶
func DealMessage ¶
func DealMessage(ctx context.Context, msgs ...*primitive.MessageExt) (consumer.ConsumeResult, error)
Types ¶
type MsgWorker ¶
type MsgWorker struct { ExitedFlag chan struct{} // 已经退出的标识 ExitChan chan struct{} }
func NewMsgWorker ¶
func NewMsgWorker() *MsgWorker
type WebAPIServer ¶
func NewWebServer ¶
func NewWebServer(ginHandler *gin.Engine) *WebAPIServer
func (*WebAPIServer) Start ¶
func (worker *WebAPIServer) Start()
func (*WebAPIServer) Stop ¶
func (worker *WebAPIServer) Stop()
Click to show internal directories.
Click to hide internal directories.