-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
46 lines (41 loc) · 980 Bytes
/
types.go
File metadata and controls
46 lines (41 loc) · 980 Bytes
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
42
43
44
45
46
package subrpc
import (
"time"
"github.com/ethereum/go-ethereum/rpc"
"github.com/yeticloud/airboss"
)
// ProcessOptions allows for passing process options to NewProcess
type ProcessOptions struct {
Name string
Type string
Config map[string]interface{}
Handler interface{}
ExePath string
Socket string
Env map[string]string
Token string
StartupDelay time.Duration
}
// ProcessInfo holds information about running processes
type ProcessInfo struct {
Name string
Type string
Config map[string]interface{}
Token string
Handler interface{}
CMD *airboss.Subprocess
Options ProcessOptions
Running bool
Terminate chan bool
PID int
Socket string
RPC *rpc.Client
StartupDelay time.Duration
}
// ProcessInput type
type ProcessInput struct {
Socket string
ServerSocket string
Token string
Config []byte
}