handler

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK                = 0
	BusinessErrorCode = 100000
	ParamErrorCode    = 100001
)

Variables

This section is empty.

Functions

func WriteBusinessError

func WriteBusinessError(c echo.Context, message string) error

func WriteErrorWithCode

func WriteErrorWithCode(c echo.Context, code int32, message string) error

func WriteOK

func WriteOK(c echo.Context, data interface{}) error

func WriteParamError

func WriteParamError(c echo.Context, message string) error

Types

type PinkWebHandler

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

PinkWebHandler web api

func NewPinkWebHandler

func NewPinkWebHandler(etcdCli *etcd.Cli, scheduler *schedule.PinkScheduler, executeSnapshotHisRepository *repository.ExecuteSnapshotHisRepository) *PinkWebHandler

func (*PinkWebHandler) AddGroup

func (h *PinkWebHandler) AddGroup(c echo.Context) error

func (*PinkWebHandler) AddJobConf

func (h *PinkWebHandler) AddJobConf(c echo.Context) error

add job conf

func (*PinkWebHandler) DeleteJobConf

func (h *PinkWebHandler) DeleteJobConf(c echo.Context) error

delete a job conf

func (*PinkWebHandler) ExecuteHistorySnapshotDelete

func (h *PinkWebHandler) ExecuteHistorySnapshotDelete(c echo.Context) error

delete execute history snapshot

func (*PinkWebHandler) ExecuteHistorySnapshots

func (h *PinkWebHandler) ExecuteHistorySnapshots(c echo.Context) error

*

  • execute history snapshot

func (*PinkWebHandler) ExecuteSnapshots

func (h *PinkWebHandler) ExecuteSnapshots(c echo.Context) error

execute snapshot

func (*PinkWebHandler) GroupDetailsList

func (h *PinkWebHandler) GroupDetailsList(c echo.Context) error

query group details list

func (*PinkWebHandler) GroupList

func (h *PinkWebHandler) GroupList(c echo.Context) error

query group list

func (*PinkWebHandler) JobConfList

func (h *PinkWebHandler) JobConfList(c echo.Context) error

query job conf list

func (*PinkWebHandler) JobExecute

func (h *PinkWebHandler) JobExecute(c echo.Context) error

execute job

func (*PinkWebHandler) NodeList

func (h *PinkWebHandler) NodeList(c echo.Context) error

node list

func (*PinkWebHandler) SchedulePlanClients

func (h *PinkWebHandler) SchedulePlanClients(c echo.Context) error

schedule clients

func (*PinkWebHandler) SchedulePlanList

func (h *PinkWebHandler) SchedulePlanList(c echo.Context) error

schedule plan list

func (*PinkWebHandler) ScheduleSnapshotDelete

func (h *PinkWebHandler) ScheduleSnapshotDelete(c echo.Context) error

delete the schedule snapshot

func (*PinkWebHandler) ScheduleSnapshots

func (h *PinkWebHandler) ScheduleSnapshots(c echo.Context) error

schedule snapshots

func (*PinkWebHandler) UpdateJobConf

func (h *PinkWebHandler) UpdateJobConf(c echo.Context) error

job conf update

Jump to

Keyboard shortcuts

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