mq

package
v0.0.0-...-aa75ca6 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QueueClient *asynq.Client

Functions

func Start

func Start(conf config.RedisConf)

func Stop

func Stop()

Types

type CustomLogger

type CustomLogger struct {
	Level CustomLoggerLevel
}

func (CustomLogger) Debug

func (l CustomLogger) Debug(args ...interface{})

Debug logs a message at Debug level.

func (CustomLogger) Error

func (l CustomLogger) Error(args ...interface{})

Error logs a message at Error level.

func (CustomLogger) Fatal

func (l CustomLogger) Fatal(args ...interface{})

Fatal logs a message at Fatal level and process will exit with status set to 1.

func (CustomLogger) Info

func (l CustomLogger) Info(args ...interface{})

Info logs a message at Info level.

func (CustomLogger) Warn

func (l CustomLogger) Warn(args ...interface{})

Warn logs a message at Warning level.

type CustomLoggerLevel

type CustomLoggerLevel = int32
const (
	Debug CustomLoggerLevel = iota
	Info
	Warn
	Error
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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