Documentation ¶
Index ¶
- Variables
- func ClientsAdd(ws *websocket.Conn) (string, error)
- func ClientsRemove(cid string) error
- func DebugRuntime()
- func GetInfo(ctx context.Context, args *Args, reply *Reply) error
- func HandleTaskMessages()
- func Init() error
- func MetricsCollect()
- type Args
- type Client
- type FFInfo
- type FilesResponse
- type Gsc
- type GscClients
- type GscMsg
- type Message
- type Reply
- type Task
- type TaskMetric
- type TaskStatusType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Success = "success" ErrorTaskNotFound = errors.New("task not found") ErrorTaskExisit = errors.New("task already exisit") ErrorTaskUpdateFail = errors.New("task update fail") ErrorClientNotFound = errors.New("client not found") ErrorClientExisit = errors.New("client already exisit") )
Default stream errors
Functions ¶
func ClientsRemove ¶
func DebugRuntime ¶
func DebugRuntime()
func HandleTaskMessages ¶
func HandleTaskMessages()
func MetricsCollect ¶
func MetricsCollect()
Types ¶
type FilesResponse ¶
type FilesResponse struct { Cwd string `json:"cwd"` Folders []string `json:"folders"` Files []file `json:"files"` }
FilesResponse http response for files endpoint.
type GscClients ¶
type GscClients struct {
// contains filtered or unexported fields
}
type Message ¶
type Message struct { Type string `json:"type"` Input string `json:"input"` Output string `json:"output"` Payload string `json:"payload"` }
Message payload from client.
type TaskMetric ¶
type TaskStatusType ¶
type TaskStatusType int
Source Files ¶
Click to show internal directories.
Click to hide internal directories.