mqs

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MulanPSL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InsQueue *workQueue

Functions

func MustNewQueue

func MustNewQueue(topic string, handler ConsumeHandler) queue.MessageQueue

func NewQueue

func NewQueue(topic string, handler ConsumeHandler) (queue.MessageQueue, error)

Types

type AiQueue

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

* Listening to the payment flow status change notification message queue

func NewAiMq

func NewAiMq(ctx context.Context, svcCtx *svc.ServiceContext) *AiQueue

func (*AiQueue) Consume

func (l *AiQueue) Consume(val string) error

type Beta added in v0.1.14

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

func (*Beta) Add added in v0.1.14

func (b *Beta) Add(item interface{})

func (*Beta) Done added in v0.1.14

func (b *Beta) Done(item interface{})

func (*Beta) Get added in v0.1.14

func (b *Beta) Get() (item interface{})

type CloudMq

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

*

func NewCloudMq

func NewCloudMq(ctx context.Context, svcCtx *svc.ServiceContext) *CloudMq

func (*CloudMq) Consume

func (l *CloudMq) Consume(val string) error

type ConsumeHandle

type ConsumeHandle func(v string) error

type ConsumeHandler

type ConsumeHandler interface {
	Consume(value string) error
}

type HpcMq

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

* Listening to the payment flow status change notification message queue

func NewHpcMq

func NewHpcMq(ctx context.Context, svcCtx *svc.ServiceContext) *HpcMq

func (*HpcMq) Consume

func (l *HpcMq) Consume(val string) error

Jump to

Keyboard shortcuts

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