Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin interface { Name() string Start(rawMessageReceiveFunc func(rawMsg *msgTY.RawMessage) error) error // start the provider Close() error // close the provider connection Post(message *msgTY.Message) error // post a message to the provider ConvertToMessages(rawMessage *msgTY.RawMessage) ([]*msgTY.Message, error) // convert the raw message in to Message(s) format }
Plugin interface
Click to show internal directories.
Click to hide internal directories.