api

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOpenApiDefinitionHandler

func NewOpenApiDefinitionHandler(baseURL string) (http.HandlerFunc, error)

func RegisterHealthRoute added in v0.12.0

func RegisterHealthRoute(router chi.Router)

func RegisterOpenAPIDefinitionRoute

func RegisterOpenAPIDefinitionRoute(baseURL string, router chi.Router) error

Types

type TaskHandler

type TaskHandler struct {
	TaskService *service.TaskService
}

func (*TaskHandler) GetTaskV1

func (ts *TaskHandler) GetTaskV1(_ context.Context, taskName string) (openapi.ImplResponse, error)

GetTaskV1 implements openapi.TaskAPIServicer

func (*TaskHandler) ListTasksV1

func (th *TaskHandler) ListTasksV1(_ context.Context) (openapi.ImplResponse, error)

ListTasksV1 implements openapi.TaskAPIServicer

type WorkHandler

type WorkHandler struct {
	WorkerService *service.WorkerService
}

func (*WorkHandler) GetWorkV1

func (wh *WorkHandler) GetWorkV1(_ context.Context) (openapi.ImplResponse, error)

func (*WorkHandler) ReportWorkV1

func (*WorkHandler) ScheduleRunV1

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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