handler

package
v0.0.0-...-231ddfd Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AboutResponse

type AboutResponse struct {
	Version      string    `json:"version"`
	LastReloaded time.Time `json:"last_reloaded"`
	Started      time.Time `json:"started"`
}

type UpdateConfigurationRequest

type UpdateConfigurationRequest struct {
	WorkerPoolCount *uint `json:"worker_pool_count" echotools:"required"`
	ProcessTimeout  *uint `json:"process_timeout" echotools:"required"`
}

type Wrapper

type Wrapper struct {
	Config                  *models.Config
	DB                      *gorm.DB
	Scheduler               scheduler.Scheduler
	ServerStart             time.Time
	Configuration           *models.Configuration
	ConfigurationReloadFunc func()
}

func (*Wrapper) About

func (w *Wrapper) About(c echo.Context) error

func (*Wrapper) Reload

func (w *Wrapper) Reload(c echo.Context) error

func (*Wrapper) UpdateConfiguration

func (w *Wrapper) UpdateConfiguration(c echo.Context) error

Jump to

Keyboard shortcuts

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