/
command.go
53 lines (44 loc) · 1.79 KB
/
command.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
42
43
44
45
46
47
48
49
50
51
52
53
// Code generated by cdpgen. DO NOT EDIT.
package backgroundservice
// StartObservingArgs represents the arguments for StartObserving in the BackgroundService domain.
type StartObservingArgs struct {
Service ServiceName `json:"service"` // No description.
}
// NewStartObservingArgs initializes StartObservingArgs with the required arguments.
func NewStartObservingArgs(service ServiceName) *StartObservingArgs {
args := new(StartObservingArgs)
args.Service = service
return args
}
// StopObservingArgs represents the arguments for StopObserving in the BackgroundService domain.
type StopObservingArgs struct {
Service ServiceName `json:"service"` // No description.
}
// NewStopObservingArgs initializes StopObservingArgs with the required arguments.
func NewStopObservingArgs(service ServiceName) *StopObservingArgs {
args := new(StopObservingArgs)
args.Service = service
return args
}
// SetRecordingArgs represents the arguments for SetRecording in the BackgroundService domain.
type SetRecordingArgs struct {
ShouldRecord bool `json:"shouldRecord"` // No description.
Service ServiceName `json:"service"` // No description.
}
// NewSetRecordingArgs initializes SetRecordingArgs with the required arguments.
func NewSetRecordingArgs(shouldRecord bool, service ServiceName) *SetRecordingArgs {
args := new(SetRecordingArgs)
args.ShouldRecord = shouldRecord
args.Service = service
return args
}
// ClearEventsArgs represents the arguments for ClearEvents in the BackgroundService domain.
type ClearEventsArgs struct {
Service ServiceName `json:"service"` // No description.
}
// NewClearEventsArgs initializes ClearEventsArgs with the required arguments.
func NewClearEventsArgs(service ServiceName) *ClearEventsArgs {
args := new(ClearEventsArgs)
args.Service = service
return args
}