mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-01-03 04:52:26 +00:00
25 lines
469 B
Go
25 lines
469 B
Go
package corestate
|
|
|
|
var NODE_UUID string
|
|
|
|
type Stage string
|
|
|
|
const (
|
|
StageNotReady Stage = "init"
|
|
StagePreInit Stage = "pre-init"
|
|
StagePostInit Stage = "post-init"
|
|
StageReady Stage = "event"
|
|
)
|
|
|
|
const (
|
|
StringsNone string = "none"
|
|
)
|
|
|
|
func NewCorestate(o *CoreState) *CoreState {
|
|
// TODO: create a convenient interface for creating a state
|
|
// if !utils.IsFullyInitialized(o) {
|
|
// return nil, fmt.Errorf("CoreState is not fully initialized")
|
|
// }
|
|
return o
|
|
}
|