supervisor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.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 ImportSupervisor

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

ImportSupervisor is responsible for supervising the import process. It manages the import lifecycle and communicates with other services like AWS and Mattermost Cloud.

func NewImportSupervisor

func NewImportSupervisor(store importStore, logger log.FieldLogger, cloudClient *cloud.Client, bucket string, keepImportData bool) *ImportSupervisor

NewImportSupervisor creates a new ImportSupervisor instance. It initializes the supervisor with provided parameters including the import store, logger, cloud client, etc.

func (*ImportSupervisor) Start

func (s *ImportSupervisor) Start()

Start begins the import supervision process. It regularly checks for new import tasks and processes them accordingly.

type TranslationSupervisor

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

TranslationSupervisor is responsible for scheduling and launching Translations in series

func NewTranslationSupervisor

func NewTranslationSupervisor(store *store.SQLStore, logger log.FieldLogger, bucket, workdir string) *TranslationSupervisor

NewTranslationSupervisor returns a Supervisor prepared with the needed metadata to operate

func (*TranslationSupervisor) Start

func (s *TranslationSupervisor) Start()

Start runs the Supervisor's main routine on a new goroutine both periodically and forever

Jump to

Keyboard shortcuts

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