-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
channels: Reorder methods according to plugin.Plugin
The plugin.Plugin interface specifies the three methods required for the channel plugin RPC API in their logical order. Considering that these channels are the blueprint for external channel development, the order of implementing channel plugins was changed to correspond to the interface. For all files, the main function has been moved to the top. In addition, the Email.Send method received a documentation string indicating that it implements the enmime.Sender interface, as it is not directly called anywhere. Further, the Email.GetServer method got inlined as it was only called from one other method.
- Loading branch information
1 parent
9a48f92
commit 9864d0e
Showing
3 changed files
with
135 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters