Documentation ¶
Index ¶
- Constants
- func ConcatFullPipelineName(serviceName, pipelineName string) string
- type ApplicationSupport
- type CommonSourceConnectorGenerateRequest
- type CommonTargetConnectorGenerateRequest
- type Connector
- type Container
- type DataType
- type DispatchDecider
- type FileResourceManager
- type FlowError
- type FlowInvoker
- type FlowInvokerMeta
- type FlowStop
- type Fn
- type FnGen
- type LifecycleListener
- type MappingDefinition
- type Model
- type ModelCopy
- type ModelEncoding
- type PipelineProcess
- type SourceConnector
- type SourceConnectorGenerateRequest
- type SourceConnectorGenerator
- type TargetConnector
- type TargetConnectorGenerateRequest
- type TargetConnectorGenerator
- type TypeOfNode
Constants ¶
View Source
const IMPLEMENT_ME = "implement me!"
View Source
const (
PathSeparator = "/"
)
Variables ¶
This section is empty.
Functions ¶
func ConcatFullPipelineName ¶ added in v0.0.4
Types ¶
type ApplicationSupport ¶ added in v0.0.2
type ApplicationSupport interface { basicapi.Application GetFileResourceManager(name string) FileResourceManager AddConfigureManager(manager basicapi.FullConfigureManager) error AddFileResourceManager(fileManager FileResourceManager) error AddSubConnectorGeneratorDefinitions(tomlData string) error AddSourceConnectorGenerator(source SourceConnectorGenerator) error AddTargetConnectorGenerator(target TargetConnectorGenerator) error AddApplicationListener(listener LifecycleListener) Startup() error Stop() error }
type CommonSourceConnectorGenerateRequest ¶ added in v0.0.3
type CommonSourceConnectorGenerateRequest struct { Options map[string]string Application ApplicationSupport InstanceName string }
type CommonTargetConnectorGenerateRequest ¶ added in v0.0.3
type CommonTargetConnectorGenerateRequest struct { Options map[string]string Application ApplicationSupport InstanceName string }
type Container ¶
type Container interface { RegisterBuiltinFn(name string, fnGen FnGen) error RegisterCustomFn(name string, fnGen FnGen) error NewModel() Model WrapReadonlyModelFromMap(map[string]interface{}) (Model, error) LoadFlowModel(tomlContent string) error LoadMerged(content string) error SetupDispatchDecider(decider DispatchDecider) error //TODO Temp solution: container level, due to lifecycle management AddLifecycleListener(listener LifecycleListener) StartContainer() error StopContainer() error }
type DispatchDecider ¶ added in v0.0.4
type DispatchDecider interface { AddFlowInvoker(f FlowInvoker) error InjectLocalPipeline(pipelineFullName string, process PipelineProcess) error PipelineDispatcher(pipelineFullName string) PipelineProcess StartDispatcher() error // triggered once all pipeline resources prepared StopDispatcher() error // triggered once all pipeline resources prepared }
type FileResourceManager ¶ added in v0.0.2
type FileResourceManager interface { Name() string LoadFile(path string) ([]byte, error) Startup() error Stop() error }
FileResourceManager defines file resource accessing provider Note: more functionality may be provided including:
- http.FileSystem
type FlowInvoker ¶ added in v0.0.4
type FlowInvoker interface { Metadata() FlowInvokerMeta AddPipeline(pipelineName string, process PipelineProcess) error Invoke(pipelineFullName string, model Model) error StartFlowInvoker() error // controlled by DispatcherDecider StopFlowInvoker() error // controlled by DispatcherDecider }
type FlowInvokerMeta ¶ added in v0.0.4
type FlowInvokerMeta struct {
// contains filtered or unexported fields
}
func NewFlowInvokerMeta ¶ added in v0.0.4
func NewFlowInvokerMeta(name string, remote bool) FlowInvokerMeta
func (FlowInvokerMeta) Name ¶ added in v0.0.4
func (m FlowInvokerMeta) Name() string
func (FlowInvokerMeta) Remote ¶ added in v0.0.4
func (m FlowInvokerMeta) Remote() bool
type LifecycleListener ¶ added in v0.0.3
type MappingDefinition ¶
type ModelEncoding ¶ added in v0.0.4
type PipelineProcess ¶
type SourceConnector ¶
type SourceConnector interface { Connector BindPipeline(PipelineProcess) error }
type SourceConnectorGenerateRequest ¶ added in v0.0.2
type SourceConnectorGenerateRequest struct { CommonSourceConnectorGenerateRequest Definition *MappingDefinition Container Container }
type SourceConnectorGenerator ¶
type SourceConnectorGenerator interface { OriginalGeneratorNames() []string GenerateSourceConnectorInstance(req SourceConnectorGenerateRequest) (SourceConnector, error) InitializeSubGeneratorInstance(req CommonSourceConnectorGenerateRequest) (SourceConnectorGenerator, error) Startup() error Stop() error }
type TargetConnector ¶
type TargetConnectorGenerateRequest ¶ added in v0.0.2
type TargetConnectorGenerateRequest struct { CommonTargetConnectorGenerateRequest Definition *MappingDefinition Container Container }
type TargetConnectorGenerator ¶
type TargetConnectorGenerator interface { OriginalGeneratorNames() []string GenerateTargetConnectorInstance(req TargetConnectorGenerateRequest) (TargetConnector, error) InitializeSubGeneratorInstance(req CommonTargetConnectorGenerateRequest) (TargetConnectorGenerator, error) Startup() error Stop() error }
type TypeOfNode ¶
type TypeOfNode int
const ( TypeUnknown TypeOfNode = 0 TypeDataNode TypeOfNode = 1 TypeNsNode TypeOfNode = 2 TypeAttributeNode TypeOfNode = 3 )
Click to show internal directories.
Click to hide internal directories.