Documentation ¶
Index ¶
- Variables
- func Close() error
- func Listen(ctx context.Context) error
- func Register(ctx context.Context, name string, options ...Option) error
- func RegisterConnector(driver string, c connector)
- func Source(name string) eventstream.Sourcer
- func Subscribe(ctx context.Context, name string, streams ...eventstream.Streamer) error
- type Config
- type Option
Constants ¶
This section is empty.
Variables ¶
var ErrUndefinedSourceDriver = errors.New(`undefined source driver`)
ErrUndefinedSourceDriver in case if source not exists
Functions ¶
func Listen ¶
Listen method launch into the background all sources where the supervised daemon mode is required, in the global registry
func Register ¶
Register data source connection with `name` and options The source defines by connection options, in the global registry
func RegisterConnector ¶
func RegisterConnector(driver string, c connector)
RegisterConnector function which creates new stream coneection by config and bind the connector to the `driver` name, in the global registry
func Source ¶
func Source(name string) eventstream.Sourcer
Source returns the source object registered with the `name`, in the global registry
Types ¶
type Option ¶ added in v0.2.1
type Option func(cnf *Config)
Option of the connection
func WithConnect ¶ added in v0.2.1
WithConnect to the source
func WithConnectURL ¶ added in v0.4.0
WithConnectURL to the source
func WithObjectConfig ¶ added in v0.2.1
WithObjectConfig converts Object to JSON storage config
func WithRawConfig ¶ added in v0.2.1
func WithRawConfig(raw json.RawMessage) Option
WithRawConfig storage config