worker

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(c *di.Container)

Types

type CodebaseGarbageCollectionQueueEntry

type CodebaseGarbageCollectionQueueEntry struct {
	CodebaseID string `json:"codebase_id"`
}

type Queue

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

func New

func New(
	logger *zap.Logger,
	queue queue.Queue,
	gcRepo db.Repository,
	viewRepo db_view.Repository,
	snapshotsRepo db_snapshots.Repository,
	workspaceReader db_workspace.WorkspaceReader,
	suggestionService *service_suggestion.Service,
	executorProvider executor.Provider,
) *Queue

func (*Queue) Enqueue

func (q *Queue) Enqueue(ctx context.Context, codebaseID string) error

func (*Queue) Start

func (q *Queue) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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