Documentation ¶
Index ¶
- Constants
- type FSM
- func (fsm *FSM) GetAllFSM() (map[string]*state_machines.FSMInstance, error)
- func (fsm *FSM) GetFSMDump(dto *dto.DkgIdDTO) (*state_machines.FSMDump, error)
- func (fsm *FSM) GetFSMInstance(dkgRoundID string, createIfMissing bool) (*state_machines.FSMInstance, error)
- func (fsm *FSM) GetFSMList() (map[string]string, error)
- func (fsm *FSM) IsExist(dkgRoundID string) (bool, error)
- func (fsm *FSM) ResetFSMState(dto *dto.ResetStateDTO) (string, error)
- func (fsm *FSM) SaveFSM(dkgRoundID string, dump []byte) error
- type FSMService
Constants ¶
View Source
const (
FSMStateKey = "fsm_state"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSM ¶
type FSM struct {
// contains filtered or unexported fields
}
func (*FSM) GetAllFSM ¶
func (fsm *FSM) GetAllFSM() (map[string]*state_machines.FSMInstance, error)
func (*FSM) GetFSMDump ¶
func (*FSM) GetFSMInstance ¶
func (fsm *FSM) GetFSMInstance(dkgRoundID string, createIfMissing bool) (*state_machines.FSMInstance, error)
GetFSMInstance returns FSM for a necessary DKG round.
func (*FSM) ResetFSMState ¶
func (fsm *FSM) ResetFSMState(dto *dto.ResetStateDTO) (string, error)
type FSMService ¶
type FSMService interface { GetFSMInstance(dkgRoundID string, createIfMissing bool) (*state_machines.FSMInstance, error) GetFSMDump(dto *dto.DkgIdDTO) (*state_machines.FSMDump, error) GetFSMList() (map[string]string, error) ResetFSMState(dto *dto.ResetStateDTO) (string, error) SaveFSM(dkgRoundID string, dump []byte) error IsExist(dkgRoundID string) (bool, error) }
func NewFSMService ¶
Click to show internal directories.
Click to hide internal directories.