slack

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client manages client side of slack api

func NewClient

func NewClient(token string) *Client

NewClient creates a new client

func (*Client) PostMessage

func (c *Client) PostMessage(channelNameOrID, message string, opts ...slack.MsgOption) error

PostMessage implements the slack PostMessage function

type Slack

type Slack interface {
	// PostMessage posts message to slack channel
	PostMessage(channelNameOrID, message string, opts ...slack.MsgOption) error
}

Slack is the interface of slack

Jump to

Keyboard shortcuts

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