queue

package
v1.1.0-alpha.14 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IQueue

type IQueue interface {
	Push(ctx context.Context, transNo string) error
	Pop(ctx context.Context) (string, error)
}

IQueue 简单队列约定

func NewSimpleRedis

func NewSimpleRedis(cnf *RedisQueueConfig, name string) IQueue

NewSimpleRedis 创建简单的 Redis 队列

type RedisQueueConfig

type RedisQueueConfig struct {
	Addr     string
	Password string
	Timeout  time.Duration
}

RedisQueueConfig Redis 队列参数

Jump to

Keyboard shortcuts

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