Documentation ¶
Index ¶
- func GetBotUserID() string
- func GetBundle() *utils.Bundle
- func GetLocalizer() *i18n.Localizer
- func GetMockArgumentsWithType(typeString string, num int) []interface{}
- func GetPoll() *poll.Poll
- func GetPollID() string
- func GetPollTwoOptions() *poll.Poll
- func GetPollWithSettings(settings poll.Settings) *poll.Poll
- func GetPollWithVoteUnknownUser() *poll.Poll
- func GetPollWithVotes() *poll.Poll
- func GetPollWithVotesAndSettings(settings poll.Settings) *poll.Poll
- func GetPollWithoutPostID() *poll.Poll
- func GetServerConfig() *model.Config
- func GetSiteURL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBotUserID ¶ added in v1.2.0
func GetBotUserID() string
GetBotUserID returns a static bot user ID.
func GetLocalizer ¶ added in v1.1.0
GetLocalizer return an localizer with an empty bundle
func GetMockArgumentsWithType ¶ added in v1.4.0
func GetPollTwoOptions ¶
GetPollTwoOptions returns a Poll with two Options, "Yes" and "No", no votes and no Poll Settings.
func GetPollWithSettings ¶
GetPollWithSettings returns a Poll with three Options, no votes and given Poll Settings.
func GetPollWithVoteUnknownUser ¶ added in v1.6.0
GetPollWithVoteUnknownUser returns a Poll with three Options, one unknown voter and no Poll Settings.
func GetPollWithVotes ¶
GetPollWithVotes returns a Poll with three Options, some votes and no Poll Settings.
func GetPollWithVotesAndSettings ¶
GetPollWithVotesAndSettings returns a Poll with three Options, some votes and given Poll Settings.
func GetPollWithoutPostID ¶ added in v1.4.0
GetPollWithoutPostID returns a Poll with three Options, without PostID.
func GetServerConfig ¶ added in v1.2.0
GetServerConfig return a static server config.
Types ¶
This section is empty.