tasks

package
v0.0.0-...-46c4bf2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeGetPingResponse = "ping:getresponse"
)

Variables

This section is empty.

Functions

func HandleGetPingResponseTask

func HandleGetPingResponseTask(ctx context.Context, t *asynq.Task) error

func NewGetPingResponseTask

func NewGetPingResponseTask(ip string, port int) (*asynq.Task, error)

Types

type Database

type Database struct {
	Client *mongo.Client
	Ctx    context.Context
	Error  error
}

func ConnectMongo

func ConnectMongo(mongoUsername, mongoPassword, mongoSocket, authDB string) Database

Jump to

Keyboard shortcuts

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