Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot interface { // Bots should return an EventType of what // they are able and willing to process. GetInterest() EventType // Gets called when a matching activity type is received. Execute(Webhook) }
type BotFactory ¶
type BotFactory interface {
NewBot(SharedConfig, interface{}) Bot
}
type EventType ¶
type EventType uint8
Used with "Interests"
func BuildInterest ¶
Pass in all EventTypes that a bot is interested in to create an aggregate EventType.
type SharedConfig ¶
type SharedConfig struct {}
Click to show internal directories.
Click to hide internal directories.