Versions in this module Expand all Collapse all v0 v0.6.0 Aug 31, 2019 Changes in this version + const ErrEmptyServerToHub + const ErrNoQueuesRegisteredForServer + const ErrPassedEmptyServerAddr + const ServerBotChannelsContextKey + const ServerBotGroupsContextKey + const ServerBotHubNameContextKey + const ServerBotIDContextKey + const ServerBotNameContextKey + const ServerURLContextKey + const ServerWSContextKey + func BotIDFromContext(ctx context.Context) string + func BotNameFromContext(ctx context.Context) string + type Customize interface + Handle func(pattern string, handler http.HandlerFunc) + type Server struct + BotID string + BotName string + Logger *log.Logger + SeenFeed chan (string) + ServerAddr string + func NewTestServer(custom ...binder) *Server + func (sts *Server) GetAPIURL() string + func (sts *Server) GetChannels() []slack.Channel + func (sts *Server) GetGroups() []slack.Group + func (sts *Server) GetSeenInboundMessages() []string + func (sts *Server) GetSeenOutboundMessages() []string + func (sts *Server) GetTestRTMInstance() *slack.RTM + func (sts *Server) GetWSURL() string + func (sts *Server) Handle(pattern string, handler http.HandlerFunc) + func (sts *Server) SawMessage(msg string) bool + func (sts *Server) SawOutgoingMessage(msg string) bool + func (sts *Server) SendBotChannelInvite() + func (sts *Server) SendBotGroupInvite() + func (sts *Server) SendDirectMessageToBot(msg string) + func (sts *Server) SendMessageToBot(channel, msg string) + func (sts *Server) SendMessageToChannel(channel, msg string) + func (sts *Server) SendToWebsocket(s string) + func (sts *Server) SetBotName(b string) + func (sts *Server) Start() + func (sts *Server) Stop()