Documentation
¶
Index ¶
- type Base
- type Feeder
- func NewFeeder(name string, conf map[string]string, bus EventBus.Bus, id int32) (Feeder, error)
- func NewFileFeeder(conf map[string]string) (Feeder, error)
- func NewRSSFeeder(conf map[string]string) (Feeder, error)
- func NewSlackFeeder(conf map[string]string) (Feeder, error)
- func NewTwitterFeeder(conf map[string]string) (Feeder, error)
- func NewWebFeeder(conf map[string]string) (Feeder, error)
- type FeederFactory
- type File
- type RSS
- type Slack
- type Twitter
- type Web
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
Base is inherited from the feeders
func (*Base) GetIdentifier ¶
GetIdentifier returns the Node identifier ID used in the bus
type Feeder ¶
type Feeder interface {
Name() string
Start()
Stop()
IsRunning() bool
GetIdentifier() string
// contains filtered or unexported methods
}
Feeder defines Base methods of the object
func NewFileFeeder ¶
NewFileFeeder is the registered method to instantiate a FileFeeder
func NewRSSFeeder ¶
NewRSSFeeder is the registered method to instantiate a RSSFeeder
func NewSlackFeeder ¶ added in v0.9.1
NewSlackFeeder is the registered method to instantiate a SlackFeeder
func NewTwitterFeeder ¶
NewTwitterFeeder is the registered method to instantiate a TwitterFeeder https://developer.twitter.com/en/docs/tweets/filter-realtime/guides/basic-stream-parameters
type FeederFactory ¶
FeederFactory identifies a function to instantiate a Feeder using the Factory
type File ¶
type File struct {
Base
// contains filtered or unexported fields
}
File is a Feeder that creates a stream from a file
type RSS ¶
type RSS struct {
Base
// contains filtered or unexported fields
}
RSS is a Feeder that creates a stream from a RSS feed
type Slack ¶ added in v0.9.1
type Slack struct {
Base
Team string
User string
TeamID string
UserID string
BotID string
// contains filtered or unexported fields
}
Slack is a Feeder that get events from Slack