mattermost

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BotName stores Botkube details
	BotName = "botkube"
	// ChannelPurpose describes the purpose of Botkube channel
	ChannelPurpose = "Botkube alerts"
	// WebSocketProtocol stores protocol initials for web socket
	WebSocketProtocol = "ws:"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	ServerURL    string
	Token        string
	TeamName     string
	ChannelName  string
	ClusterName  string
	AllowKubectl bool
}

Bot listens for user's message, execute commands and sends back the response

func NewMattermostBot

func NewMattermostBot() *Bot

NewMattermostBot returns new Bot object

func (*Bot) Start

func (b *Bot) Start()

Start establishes mattermost connection and listens for messages

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL