Documentation ¶
Index ¶
- Variables
- func AddSourceFields(header map[string]interface{}, fields map[string]interface{}, underRoot bool, ...)
- func GetWithType(category api.Category, typename api.Type, info Info) (api.Component, error)
- func Register(category api.Category, typename api.Type, factory Factory)
- func SetDefaultConfigRaw(defaults Config)
- type Config
- type Epoch
- type Factory
- type Info
- type Pipeline
- type RegisterCenter
- func (r *RegisterCenter) LoadCodeCategoryComponents(category api.Category) map[string]api.Component
- func (r *RegisterCenter) LoadCodeComponents() map[string]api.Component
- func (r *RegisterCenter) LoadCodeInterceptors() map[string]api.Interceptor
- func (r *RegisterCenter) LoadDefaultQueue() api.Queue
- func (r *RegisterCenter) LoadInterceptors() []api.Interceptor
- func (r *RegisterCenter) LoadQueue(typename api.Type, name string) api.Queue
- func (r *RegisterCenter) LoadQueueListeners() []spi.QueueListener
- func (r *RegisterCenter) LoadSink(typename api.Type, name string) api.Sink
- func (r *RegisterCenter) LoadSource(typename api.Type, name string) api.Source
- func (r *RegisterCenter) LoadWithType(typename api.Type, name string, componentType api.Category) api.Component
- func (r *RegisterCenter) Register(component api.Component, name string) error
- func (r *RegisterCenter) RegisterListener(listener spi.ComponentListener)
- func (r *RegisterCenter) RemoveByCode(code string)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddSourceFields ¶ added in v1.3.0
func GetWithType ¶
func SetDefaultConfigRaw ¶
func SetDefaultConfigRaw(defaults Config)
Types ¶
type Config ¶
type Config struct { Name string `yaml:"name,omitempty" validate:"required"` CleanDataTimeout time.Duration `yaml:"cleanDataTimeout,omitempty" default:"5s"` Queue *queue.Config `yaml:"queue,omitempty" validate:"dive,required"` Interceptors []*interceptor.Config `yaml:"interceptors,omitempty"` Sources []*source.Config `yaml:"sources,omitempty" validate:"dive,required"` Sink *sink.Config `yaml:"sink,omitempty" validate:"dive,required"` }
func GetDefaultConfigRaw ¶
func (*Config) SetDefaults ¶ added in v1.3.0
func (c *Config) SetDefaults()
type Pipeline ¶
type Pipeline struct { Running bool // contains filtered or unexported fields }
func NewPipeline ¶
type RegisterCenter ¶
type RegisterCenter struct {
// contains filtered or unexported fields
}
func NewRegisterCenter ¶
func NewRegisterCenter() *RegisterCenter
func (*RegisterCenter) LoadCodeCategoryComponents ¶ added in v1.3.0
func (*RegisterCenter) LoadCodeComponents ¶ added in v1.3.0
func (r *RegisterCenter) LoadCodeComponents() map[string]api.Component
func (*RegisterCenter) LoadCodeInterceptors ¶ added in v1.2.3
func (r *RegisterCenter) LoadCodeInterceptors() map[string]api.Interceptor
func (*RegisterCenter) LoadDefaultQueue ¶
func (r *RegisterCenter) LoadDefaultQueue() api.Queue
func (*RegisterCenter) LoadInterceptors ¶
func (r *RegisterCenter) LoadInterceptors() []api.Interceptor
func (*RegisterCenter) LoadQueueListeners ¶
func (r *RegisterCenter) LoadQueueListeners() []spi.QueueListener
func (*RegisterCenter) LoadSource ¶
func (*RegisterCenter) LoadWithType ¶
func (*RegisterCenter) Register ¶
func (r *RegisterCenter) Register(component api.Component, name string) error
func (*RegisterCenter) RegisterListener ¶
func (r *RegisterCenter) RegisterListener(listener spi.ComponentListener)
func (*RegisterCenter) RemoveByCode ¶ added in v1.3.0
func (r *RegisterCenter) RemoveByCode(code string)
Click to show internal directories.
Click to hide internal directories.