slack

package
v0.0.0-...-7355567 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelMessenger

type ChannelMessenger interface {
	SendChannelMessage(channel string, msg string) error
}

type Client

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

func NewClient

func NewClient(botToken string, userToken string) *Client

func (*Client) SendChannelMessage

func (sc *Client) SendChannelMessage(channel string, msg string) error

func (*Client) SendDirectMessage

func (sc *Client) SendDirectMessage(slackId string, msg string) error

func (*Client) SetPersonalReminder

func (sc *Client) SetPersonalReminder(slackId string, time string, msg string) error

type DirectMessenger

type DirectMessenger interface {
	SendDirectMessage(slackId string, msg string) error
}

type PersonalReminderSetter

type PersonalReminderSetter interface {
	SetPersonalReminder(slackId string, time string, msg string) error
}

type SlackCommunicator

type SlackCommunicator interface {
	ChannelMessenger
	DirectMessenger
	PersonalReminderSetter
}

Jump to

Keyboard shortcuts

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