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