Documentation ¶
Index ¶
Constants ¶
View Source
const ( TaskStatusNone = iota TaskStatusRunning TaskStatusSucceeded TaskStatusFailed TaskStatusDisabled )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { GetSettings(c *gin.Context) UpdateSettings(c *gin.Context) StartExport(c *gin.Context) GetExport(c *gin.Context) DownloadExport(c *gin.Context) }
func NewApi ¶
func NewApi( taskExecutor TaskExecutor, store Store, timezoneConfigProvider config.TimezoneConfigProvider, ) API
type ExportResponse ¶
type Settings ¶
type Store ¶
type Task ¶
type TaskExecutor ¶
type TaskExecutor interface { Run(ctx context.Context) // StartExecute creates new export task. StartExecute(ctx context.Context) (Task, error) // GetStatus returns export task status. GetStatus(ctx context.Context) (Task, error) }
TaskExecutor is used to implement export task executor.
func NewTaskExecutor ¶
func NewTaskExecutor( store Store, logger zerolog.Logger, ) TaskExecutor
Click to show internal directories.
Click to hide internal directories.