slack

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slack

type Slack struct {
	Token   string
	Channel string
}

Slack action class implementing the Action interface

func (*Slack) Init

func (s *Slack) Init(params map[interface{}]interface{}) error

Init initializes the Slack Configuration like token and channel

func (*Slack) SendNotification

func (s *Slack) SendNotification(message string) error

SendNotification sends the Notification to the channel

func (*Slack) TakeAction

func (s *Slack) TakeAction(obj interface{})

TakeAction handles the main logic for slack action

type SlackService

type SlackService interface {
	SendNotification(message string) error
}

Jump to

Keyboard shortcuts

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