cslack

package
v0.0.0-...-eaecd5c Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToGoogleCloudAPI

func ConnectToGoogleCloudAPI() bool

ConnectToGoogleCloudAPI connects...

func GetK8sPodInfo

func GetK8sPodInfo()

GetK8sPodInfo creates the in-cluster config

func HandleSlackMessageEvent

func HandleSlackMessageEvent(ev slack.MessageEvent, rtm slack.RTM, slackAPI slack.Client, server *SlackServer)

HandleSlackMessageEvent is the entry point to messageEvent for message handling. From here, messages are evaluated as commands or a message of the type we can respond to

func SlackServerManager

func SlackServerManager(slackAPI *slack.Client, server SlackServer, myID string, myTeamID string)

SlackServerManager is the entry point to the cslack lib

Types

type SlackServer

type SlackServer struct {
	Name           string `json:"Name"`
	APIKey         string `json:"APIKey"`
	CluebatBotChan string `json:"CluebatBotChan"`
	OwnerID        string `json:"OwnerID"`
	LatencyCounter int
	LatencySlice   []int64
	Channels       map[string]slack.Channel
	Users          map[string]slack.User
}

SlackServer a server config

Jump to

Keyboard shortcuts

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