slack

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 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 SlackClient

type SlackClient interface {
	PostMessage(ctx context.Context, channel string, msg slack.Msg) error
	PostMessageToThread(ctx context.Context, channel, ts string, msg slack.Msg) error
	UpdateMessage(ctx context.Context, channel, ts string, msg slack.Msg) error
}

type SlackClientFactory

type SlackClientFactory interface {
	New(client slack.Client) (SlackClient, error)
}

func NewSlackClientFactory

func NewSlackClientFactory() SlackClientFactory

type SlackClientFactoryImpl

type SlackClientFactoryImpl struct{}

func (SlackClientFactoryImpl) New

type SlackClientImpl

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

func NewSlackClientImpl

func NewSlackClientImpl(client slack.Client) (*SlackClientImpl, error)

func (*SlackClientImpl) PostMessage

func (s *SlackClientImpl) PostMessage(ctx context.Context, channel string, msg slack.Msg) error

func (*SlackClientImpl) PostMessageToThread

func (s *SlackClientImpl) PostMessageToThread(ctx context.Context, channel, messageTs string, msg slack.Msg) error

func (*SlackClientImpl) UpdateMessage

func (s *SlackClientImpl) UpdateMessage(ctx context.Context, channel, ts string, msg slack.Msg) error

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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