slack

package
v0.0.0-...-bebbdda Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 15 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
}

func NewSlackClient

func NewSlackClient(cfg config.Config) Client

func (*Client) DetermineObservTarget

func (c *Client) DetermineObservTarget(ctx context.Context) (ObservTarget, error)

func (*Client) ForwardMessage

func (c *Client) ForwardMessage(ctx context.Context, everythingChannelID string, sourceChannelName string, message slackevents.MessageEvent) error

投稿を転送する

func (*Client) GetAllMCGMembers

func (c *Client) GetAllMCGMembers(ctx context.Context, mustIncludeUsers ...string) (map[string]struct{}, error)

func (*Client) GetPrefixedChannels

func (c *Client) GetPrefixedChannels(ctx context.Context, prefix string, mustIncludeChannelIDs ...string) (map[string]string, error)

key: channelID, value: channelName

func (*Client) GetPrefixedEverythingChannel

func (c *Client) GetPrefixedEverythingChannel(ctx context.Context, prefix string) (string, error)

func (*Client) GetPublicChannels

func (c *Client) GetPublicChannels(ctx context.Context) ([]slack.Channel, error)

func (*Client) HandleSlackEvents

func (c *Client) HandleSlackEvents(ctx context.Context) error

func (*Client) InviteUsersToChannels

func (c *Client) InviteUsersToChannels(ctx context.Context, channelIDs []string, userIDs []string) error

func (*Client) Listen

func (c *Client) Listen(ctx context.Context) error

type ObservTarget

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

type SlackLogger

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

func (SlackLogger) Output

func (s SlackLogger) Output(calldepth int, str string) error

Jump to

Keyboard shortcuts

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