Documentation ¶
Index ¶
- Constants
- Variables
- func NewManager(ctx context.Context, resourceManager types.ResourceManager, ...) (types.Manager, error)
- func NewResources(searchClient *search.Service, tseriesClient tseries.TimeSerier, ...) types.ResourceManager
- type Container
- func (c *Container) Add(machine state.Machiner)
- func (c *Container) Close()
- func (c *Container) Get(stateID string) (machine state.Machiner, has bool)
- func (c *Container) Load(ctx context.Context, stateID string) (machine state.Machiner, err error)
- func (c *Container) MakeMachine(en *dao.Entity) (machine state.Machiner, err error)
- func (c *Container) Remove(stateID string)
- type Manager
- type WatchKey
Constants ¶
View Source
const ( SMTypeBasic = "BASIC" SMTypeSubscription = "SUBSCRIPTION" // state machine required fileds. SMFieldType = "type" SMFieldOwner = "owner" SMFieldSource = "source" SMFieldTemplate = "template" )
Variables ¶
Functions ¶
func NewManager ¶ added in v0.3.0
func NewManager(ctx context.Context, resourceManager types.ResourceManager, dispatcher dispatch.Dispatcher) (types.Manager, error)
func NewResources ¶ added in v0.4.1
func NewResources( searchClient *search.Service, tseriesClient tseries.TimeSerier, repoClient repository.IRepository) types.ResourceManager
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶ added in v0.3.0
func (*Container) MakeMachine ¶ added in v0.4.1
type Manager ¶ added in v0.3.0
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) EscapedEntities ¶ added in v0.3.0
func (*Manager) HandleMessage ¶ added in v0.4.1
func (*Manager) Resource ¶ added in v0.4.1
func (m *Manager) Resource() types.ResourceManager
Resource return resource manager.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.