slack

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

package slack provides an easy way to read slack credentials from a config file and post (internal) messages to slack.

```

{
	"slack_internal": {
		"channel": "#activity",
		"api_token": "..."
	}
}

```

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	Config *config.Module
	Logger *logger.Module

	LogMessages bool
	// contains filtered or unexported fields
}

func (*Module) Init

func (m *Module) Init(c *service.Config)

func (*Module) Post

func (m *Module) Post(txt string, params ...slack.MsgOption)

Post a message to the default channel

func (*Module) PostC

func (m *Module) PostC(channel, txt string, params ...slack.MsgOption)

PostC posts a message to the given channel

Jump to

Keyboard shortcuts

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