-
Notifications
You must be signed in to change notification settings - Fork 197
/
statusComponentsStub.go
44 lines (36 loc) · 1012 Bytes
/
statusComponentsStub.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
package mock
import (
"github.com/ElrondNetwork/elrond-go-core/core"
"github.com/ElrondNetwork/elrond-go/common/statistics"
"github.com/ElrondNetwork/elrond-go/outport"
)
// StatusComponentsStub -
type StatusComponentsStub struct {
Outport outport.OutportHandler
SoftwareVersionCheck statistics.SoftwareVersionChecker
AppStatusHandler core.AppStatusHandler
}
// Create -
func (scs *StatusComponentsStub) Create() error {
return nil
}
// Close -
func (scs *StatusComponentsStub) Close() error {
return nil
}
// CheckSubcomponents -
func (scs *StatusComponentsStub) CheckSubcomponents() error {
return nil
}
// OutportHandler -
func (scs *StatusComponentsStub) OutportHandler() outport.OutportHandler {
return scs.Outport
}
// SoftwareVersionChecker -
func (scs *StatusComponentsStub) SoftwareVersionChecker() statistics.SoftwareVersionChecker {
return scs.SoftwareVersionCheck
}
// IsInterfaceNil -
func (scs *StatusComponentsStub) IsInterfaceNil() bool {
return scs == nil
}