worker

package
v0.0.0-...-b68892b Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	DatabaseDNS string `envconfig:"DATABASE_DNS" required:"true"`
}

type Config

type Config struct {
	DatabaseDSN string `envconfig:"DATABASE_DSN" required:"true"`
}

type Worker

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

func NewWorker

func NewWorker(ctx context.Context, log *logrus.Entry) (*Worker, error)

func (*Worker) Start

func (w *Worker) Start() error

func (*Worker) Stop

func (w *Worker) Stop() error

type WorkerClient

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

func NewWorkerClient

func NewWorkerClient(logger *logrus.Entry) (*WorkerClient, error)

func (*WorkerClient) UpdateCollectionStats

func (p *WorkerClient) UpdateCollectionStats(collectionId uint64)

func (*WorkerClient) UpdateCollectionTraits

func (p *WorkerClient) UpdateCollectionTraits(collectionId uint64)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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