Documentation ¶
Index ¶
Constants ¶
View Source
const ( Slack = "slack" Irc = "irc" )
Variables ¶
View Source
var (
ChatKinds = []string{Slack, Irc}
)
Functions ¶
func ProviderAccessTokenURL ¶
Types ¶
type ChannelMetrics ¶
ChannelMetrics metrics for a channel
func (*ChannelMetrics) ToMarkdown ¶
func (m *ChannelMetrics) ToMarkdown() string
type ChatProvider ¶
type ChatProvider interface {
GetChannelMetrics(name string) (*ChannelMetrics, error)
}
ChatProvider represents an integration interface to chat
func CreateChatProvider ¶
func CreateChatProvider(kind string, server *auth.AuthServer, userAuth *auth.UserAuth, batchMode bool) (ChatProvider, error)
CreateChatProvider creates a new chat provider if one is available for the given kind
func CreateSlackChatProvider ¶
func CreateSlackChatProvider(server *auth.AuthServer, userAuth *auth.UserAuth, batchMode bool) (ChatProvider, error)
type SlackChatProvider ¶
type SlackChatProvider struct { SlackClient *slack.Client Server *auth.AuthServer UserAuth *auth.UserAuth }
func (*SlackChatProvider) GetChannelMetrics ¶
func (c *SlackChatProvider) GetChannelMetrics(name string) (*ChannelMetrics, error)
Click to show internal directories.
Click to hide internal directories.