service

package
v0.0.0-...-05a5043 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const ADMIN_CRON_SERVICE = "admin_cron"
View Source
const ADMIN_SETTINGS_SERVICE = "admin_settings"

Variables

This section is empty.

Functions

func NewAdminCronService

func NewAdminCronService() (core.Service, []core.ContextBuilderOption, error)

func NewAdminSettingsService

func NewAdminSettingsService() (core.Service, []core.ContextBuilderOption, error)

Types

type AdminCronService

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

func (*AdminCronService) GetCronJobByUUID

func (a *AdminCronService) GetCronJobByUUID(uuid uuid.UUID) (*models.CronJob, error)

func (*AdminCronService) GetCronJobStats

func (a *AdminCronService) GetCronJobStats() (*CronJobStats, error)

func (*AdminCronService) GetRecentCronJobLogs

func (a *AdminCronService) GetRecentCronJobLogs(limit int) ([]models.CronJobLog, error)

func (*AdminCronService) ID

func (a *AdminCronService) ID() string

func (*AdminCronService) ListCronJobLogs

func (a *AdminCronService) ListCronJobLogs(jobID uint) ([]models.CronJobLog, error)

func (*AdminCronService) ListCronJobs

func (a *AdminCronService) ListCronJobs(offset, limit int, sortBy, sortOrder string) ([]models.CronJob, int64, error)

type AdminSettingsService

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

func (*AdminSettingsService) GetSchema

func (a *AdminSettingsService) GetSchema() *schema.Schema

func (*AdminSettingsService) GetSetting

func (a *AdminSettingsService) GetSetting(key string) *messages.SettingsItem

func (*AdminSettingsService) GetSettings

func (a *AdminSettingsService) GetSettings() []*messages.SettingsItem

func (*AdminSettingsService) ID

func (a *AdminSettingsService) ID() string

func (*AdminSettingsService) UpdateSetting

func (a *AdminSettingsService) UpdateSetting(setting *messages.SettingsItem) error

type CronJobStats

type CronJobStats struct {
	Total  int64
	Failed int64
}

Jump to

Keyboard shortcuts

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