-
Notifications
You must be signed in to change notification settings - Fork 4
/
vobjectvalidationreport.go
39 lines (29 loc) · 1.13 KB
/
vobjectvalidationreport.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
package handlers
import (
"github.com/insolar/assured-ledger/ledger-core/conveyor/smachine"
"github.com/insolar/assured-ledger/ledger-core/rms"
"github.com/insolar/assured-ledger/ledger-core/vanilla/injector"
)
type SMVObjectValidationReport struct {
// input arguments
Meta *rms.Meta
Payload *rms.VObjectValidationReport
}
/* -------- Declaration ------------- */
var dSMVObjectValidationReportInstance smachine.StateMachineDeclaration = &dSMVObjectValidationReport{}
type dSMVObjectValidationReport struct {
smachine.StateMachineDeclTemplate
}
func (*dSMVObjectValidationReport) InjectDependencies(_ smachine.StateMachine, _ smachine.SlotLink, _ injector.DependencyInjector) {
}
func (*dSMVObjectValidationReport) GetInitStateFor(sm smachine.StateMachine) smachine.InitFunc {
s := sm.(*SMVObjectValidationReport)
return s.Init
}
/* -------- Instance ------------- */
func (s *SMVObjectValidationReport) GetStateMachineDeclaration() smachine.StateMachineDeclaration {
return dSMVObjectValidationReportInstance
}
func (s *SMVObjectValidationReport) Init(ctx smachine.InitializationContext) smachine.StateUpdate {
return ctx.Stop()
}