Documentation ¶
Index ¶
- Constants
- func AutoReconfigurationEnabled() bool
- func ContinueOnError(a *App) error
- func DeleteValue(name string)
- func EnableFlowControl() bool
- func EngineSettings(svcManager *service.Manager, actionSettings map[string]map[string]interface{}) func(*App) error
- func FinalizeProperties(processors ...property.PostProcessor) func(*App) error
- func GetDelayedStopInterval() string
- func GetValue(name string) (value interface{}, exists bool)
- func SetValue(name string, value interface{}) error
- type App
- func (a *App) GetProperty(name string) (interface{}, bool)
- func (a *App) GetResource(id string) *resource.Resource
- func (a *App) Name() interface{}
- func (a *App) PostAppEvent(appStatus Status)
- func (a *App) Reconfigure() error
- func (a *App) ResourceManager() *resource.Manager
- func (a *App) RuntimeSettings() map[string]interface{}
- func (a *App) ServiceManager() *service.Manager
- func (a *App) Start() error
- func (a *App) Stop() error
- func (a *App) TriggerStatuses() []*managed.StatusInfo
- func (a *App) Version() interface{}
- type AppEvent
- type AppResolver
- type Config
- type Controller
- type LifecycleAware
- type Option
- type Status
Constants ¶
View Source
const ( FAILED = "Failed" STARTED = "Started" STARTING = "Starting" STOPPING = "Stopping" STOPPED = "Stopped" )
View Source
const ( EnvKeyDelayedAppStopInterval = "FLOGO_APP_DELAYED_STOP_INTERVAL" EnvKeyEnableFlowControl = "FLOGO_APP_ENABLE_FLOW_CONTROL" EnvKeyAutoReconfigure = "FLOGO_APP_AUTO_RECONFIGURE" )
View Source
const (
AlreadyControlled = "app is already event flow controlled"
)
View Source
const AppEventType = "appevent"
Variables ¶
This section is empty.
Functions ¶
func AutoReconfigurationEnabled ¶
func AutoReconfigurationEnabled() bool
func ContinueOnError ¶
func EnableFlowControl ¶
func EnableFlowControl() bool
func EngineSettings ¶
func FinalizeProperties ¶
func FinalizeProperties(processors ...property.PostProcessor) func(*App) error
func GetDelayedStopInterval ¶
func GetDelayedStopInterval() string
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) GetProperty ¶
func (*App) PostAppEvent ¶
func (*App) ResourceManager ¶
func (*App) RuntimeSettings ¶
func (*App) ServiceManager ¶
func (*App) TriggerStatuses ¶
func (a *App) TriggerStatuses() []*managed.StatusInfo
TriggerStatuses gets the status information for the triggers
type AppResolver ¶
type AppResolver struct { }
func (*AppResolver) GetResolverInfo ¶
func (r *AppResolver) GetResolverInfo() *resolve.ResolverInfo
type Config ¶
type Config struct { Name string `json:"name"` Type string `json:"type"` Version string `json:"version"` Description string `json:"description"` AppModel string `json:"appModel"` Imports []string `json:"imports,omitempty"` Properties []*data.Attribute `json:"properties,omitempty"` Channels []string `json:"channels,omitempty"` Triggers []*trigger.Config `json:"triggers"` Resources []*resource.Config `json:"resources,omitempty"` Actions []*action.Config `json:"actions,omitempty"` Schemas map[string]*schema.Def `json:"schemas,omitempty"` Connections map[string]*connection.Config `json:"connections,omitempty"` }
Config is the configuration for the App
type Controller ¶
func GetEventFlowController ¶
func GetEventFlowController() Controller
type LifecycleAware ¶
Click to show internal directories.
Click to hide internal directories.