Documentation
¶
Index ¶
- type Client
- func (c *Client) DetermineObservTarget(ctx context.Context) (ObservTarget, error)
- func (c *Client) ForwardMessage(ctx context.Context, everythingChannelID string, sourceChannelName string, ...) error
- func (c *Client) GetAllMCGMembers(ctx context.Context, mustIncludeUsers ...string) (map[string]struct{}, error)
- func (c *Client) GetPrefixedChannels(ctx context.Context, prefix string, mustIncludeChannelIDs ...string) (map[string]string, error)
- func (c *Client) GetPrefixedEverythingChannel(ctx context.Context, prefix string) (string, error)
- func (c *Client) GetPublicChannels(ctx context.Context) ([]slack.Channel, error)
- func (c *Client) HandleSlackEvents(ctx context.Context) error
- func (c *Client) InviteUsersToChannels(ctx context.Context, channelIDs []string, userIDs []string) error
- func (c *Client) Listen(ctx context.Context) error
- type ObservTarget
- type SlackLogger
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 (*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 (*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 (*Client) GetPublicChannels ¶
func (*Client) InviteUsersToChannels ¶
type ObservTarget ¶
type ObservTarget struct {
// contains filtered or unexported fields
}
type SlackLogger ¶
type SlackLogger struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.