-
Notifications
You must be signed in to change notification settings - Fork 4
/
const.go
41 lines (34 loc) · 1.18 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package comfyUIclient
type WsMessageType string
const (
Status WsMessageType = "status"
Progress WsMessageType = "progress"
Executed WsMessageType = "executed"
Executing WsMessageType = "executing"
ExecutionStart WsMessageType = "execution_start"
ExecutionError WsMessageType = "execution_error"
ExecutionCached WsMessageType = "execution_cached"
ExecutionInterrupted WsMessageType = "execution_interrupted"
)
type Router string
const (
PromptRouter Router = "/prompt"
HistoryRouter Router = "/history"
ViewRouter Router = "/view"
ViewMetadataRouter Router = "/view_metadata"
EmbeddingsRouter Router = "/embeddings"
ExtensionsRouter Router = "/extensions"
SystemStatsRouter Router = "/system_stats"
InterruptRouter Router = "/interrupt"
QueueRouter Router = "/queue"
ObjectInfoRouter Router = "/object_info"
UploadImageRouter Router = "/upload/image"
UploadMaskRouter Router = "/upload/mask"
)
type TaskStatusType = WsMessageType
type ImageType string
const (
InputImageType ImageType = "input"
TempImageType ImageType = "temp"
OutputImageType ImageType = "output"
)