service

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_REQ_CNT    = 3
	MIN_DELAY_TIME = 100 //ms
)

Variables

This section is empty.

Functions

func Init

func Init(workerIp string, rpcPort int64)

Types

type IWorkerService

type IWorkerService interface {
	Stop()
	// contains filtered or unexported methods
}
var WorkerService IWorkerService

func NewWorkerService

func NewWorkerService(rpcPort int64, workerId string, workerIp string) IWorkerService

type WorkerConsumer

type WorkerConsumer struct {
}

func (*WorkerConsumer) ConsumerDelayMsg

func (this *WorkerConsumer) ConsumerDelayMsg(req message.Request, res *message.Response) error

延时消息消费

Jump to

Keyboard shortcuts

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