livp

package
v0.0.0-...-094e1e4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StatusIdle           = 0
	StatusFinished       = 1
	StatusCanceled       = 2
	StatusError          = 3
	StatusWaitRunning    = 4
	StatusWaitCanceled   = 5
	StatusRunningCollect = 6
	StatusRunningAnalyze = 7
)

Functions

func ApiEvent

func ApiEvent(c echo.Context, kfsCore *core.KFS) error

func StartOrStop

func StartOrStop(kfsCore *core.KFS, start bool, force bool)

Types

type Client

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

func (*Client) Chan

func (c *Client) Chan() chan TaskInfo

func (*Client) Message

func (c *Client) Message() TaskInfo

type TaskInfo

type TaskInfo struct {
	Status       int      `json:"status"`
	LastDoneTime int64    `json:"lastDoneTime"`
	Cnt          int      `json:"cnt"`
	Total        int      `json:"total"`
	Errors       []string `json:"errors"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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