claptrap

package
v0.0.0-...-c531dcc Latest Latest
Warning

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

Go to latest
Published: May 31, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotServer

type BotServer struct {
	// contains filtered or unexported fields
}

func NewBotServer

func NewBotServer(config Config) (*BotServer, error)

func (*BotServer) AddCase

func (b *BotServer) AddCase(caseType string, newCase rules.Case)

func (*BotServer) Start

func (b *BotServer) Start()

type Config

type Config struct {
	General    GeneralConfig    `yaml:"general"`
	Mattermost MattermostConfig `yaml:"mattermost"`
	Webserver  WebserverConfig  `yaml:"webserver"`
}

func NewConfig

func NewConfig(filePath string) Config

type GeneralConfig

type GeneralConfig struct {
	CaseDir            string `yaml:"case_dir"`
	AutoJoinAllChannel bool   `yaml:"auto_join_all_channel"`
}

type MattermostConfig

type MattermostConfig struct {
	ApiUrl   string `yaml:"api_url"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	Team     string `yaml:"team"`
}

type WebserverConfig

type WebserverConfig struct {
	Enabled bool   `yaml:"enabled"`
	Listen  string `yaml:"listen"`
}

Jump to

Keyboard shortcuts

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