Documentation ¶
Index ¶
- func API(api []byte) func(w http.ResponseWriter, r *http.Request)
- func CreateCycle(sched scheduler.Scheduler) func(w http.ResponseWriter, r *http.Request)
- func DeleteCycle(sched scheduler.Scheduler) func(w http.ResponseWriter, r *http.Request)
- func GetCycleForID(sched scheduler.Scheduler) func(w http.ResponseWriter, r *http.Request)
- func GetCycleThrottle(sched scheduler.Scheduler) func(w http.ResponseWriter, r *http.Request)
- func GetCycles(sched scheduler.Scheduler) func(w http.ResponseWriter, r *http.Request)
- func LogLevel(w http.ResponseWriter, r *http.Request)
- func ResetCycle(sched scheduler.Scheduler) func(w http.ResponseWriter, r *http.Request)
- func ResumeCycle(sched scheduler.Scheduler) func(w http.ResponseWriter, r *http.Request)
- func SetCycleThrottle(sched scheduler.Scheduler) func(w http.ResponseWriter, r *http.Request)
- func ShutdownScheduler(sched scheduler.Scheduler) func(w http.ResponseWriter, r *http.Request)
- func StartScheduler(sched scheduler.Scheduler) func(w http.ResponseWriter, r *http.Request)
- func StopCycle(sched scheduler.Scheduler) func(w http.ResponseWriter, r *http.Request)
- type HealthService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func API ¶ added in v0.2.12
func API(api []byte) func(w http.ResponseWriter, r *http.Request)
API returns the swagger.yml for this service.
func CreateCycle ¶
CreateCycle POST request to create a new cycle
func DeleteCycle ¶
DeleteCycle deletes the cycle by the given id
func GetCycleForID ¶
GetCycleForID returns the individual cycle
func GetCycleThrottle ¶ added in v0.2.12
Get a cycle throttle
func LogLevel ¶ added in v0.2.12
func LogLevel(w http.ResponseWriter, r *http.Request)
LogLevel handles request to change the logging level between debug and info
func ResetCycle ¶
ResetCycle stops and completely resets the given cycle
func ResumeCycle ¶
ResumeCycle resumes the stopped cycle.
func SetCycleThrottle ¶ added in v0.2.12
Set a cycle throttle
func ShutdownScheduler ¶
ShutdownScheduler stops all cycles
func StartScheduler ¶
StartScheduler resumes all cycles
Types ¶
type HealthService ¶ added in v0.2.12
type HealthService struct {
// contains filtered or unexported fields
}
func NewHealthService ¶ added in v0.2.12
func (*HealthService) GTG ¶ added in v0.2.12
func (healthService *HealthService) GTG() gtg.Status
GTG returns a handler for a standard GTG endpoint.
func (*HealthService) Health ¶ added in v0.2.12
func (healthService *HealthService) Health() func(w http.ResponseWriter, r *http.Request)
Health returns a handler for the standard FT healthchecks
Click to show internal directories.
Click to hide internal directories.