api

package
v0.0.0-...-a51c0b6 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListSchedulesResponse

type ListSchedulesResponse struct {
	Page      Page                  `json:"page"`
	Schedules []db.ListSchedulesRow `json:"schedules"`
}

type Page

type Page struct {
	Number        int32 `json:"number"`
	Size          int32 `json:"size"`
	TotalPages    int32 `json:"totalPages"`
	TotalElements int32 `json:"totalElements"`
}

type ScheduleHistoryResponse

type ScheduleHistoryResponse struct {
	Page    Page                `json:"page"`
	History []db.ListHistoryRow `json:"history"`
}

type Server

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

func NewServer

func NewServer(config config.ServerConfig, store db.Store, executor *hooks.Executor, worker *worker.Worker) (*Server, error)

func (*Server) Shutdown

func (s *Server) Shutdown() error

func (*Server) Start

func (s *Server) Start(address string) error

Jump to

Keyboard shortcuts

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