queue_helper

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: BSD-3-Clause Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublishService

type PublishService struct {
	// contains filtered or unexported fields
}

func NewPublishService

func NewPublishService(server *queue.MachineryQueue, tag *PushMsgTag, logger log.LoggerContextIface) (*PublishService, error)

func (*PublishService) GetTaskState

func (p *PublishService) GetTaskState(taskId string) (*tasks.TaskState, error)

func (*PublishService) PushMessage

func (p *PublishService) PushMessage(ctx context.Context, args interface{}) (string, int)

type PushMsgTag

type PushMsgTag struct {
	DeliveryTag    string // consume func name
	DeliveryErrTag string // consume func name
	RetryCount     int    // default 3 cycle
	RetryTimeout   int    // default 10s
}

Jump to

Keyboard shortcuts

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