mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-26 17:49:15 +01:00
refactor: optimized code
This commit is contained in:
8
core/entity/ipc.go
Normal file
8
core/entity/ipc.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package entity
|
||||
|
||||
// IPCMessage defines the structure for messages exchanged between parent and child processes
|
||||
type IPCMessage struct {
|
||||
Type string `json:"type"` // message type identifier
|
||||
Payload interface{} `json:"payload"` // message content
|
||||
IPC bool `json:"ipc"` // Add this field to explicitly mark IPC messages
|
||||
}
|
||||
Reference in New Issue
Block a user