server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(conf *conf.Config) *Server

func (*Server) Run

func (s *Server) Run() error

type Task

type Task struct {
	HarborKey string `json:"harbor_key"`
	TaskName  string `json:"task_name"`
	Path      string `json:"path"`
	Cmd       string `json:"cmd"`
	Heartbeat string `json:"heartbeat"`

	Run         bool `json:"run"`           // 是否在运行
	LastRunTime int  `json:"last_run_time"` // 最后运行时间
}

Jump to

Keyboard shortcuts

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