Documentation
¶
Overview ¶
Package slackgw implements the gateway.Adapter for Slack.
Index ¶
- type Adapter
- func (a *Adapter) Channels(_ context.Context) ([]gateway.ExternalChannel, error)
- func (a *Adapter) Health(ctx context.Context) error
- func (a *Adapter) Name() string
- func (a *Adapter) Send(ctx context.Context, channelID, sender, content string) error
- func (a *Adapter) SendFile(ctx context.Context, channelID, sender, filename string, data []byte, ...) error
- func (a *Adapter) Start(ctx context.Context, onMessage func(gateway.InboundMessage)) error
- func (a *Adapter) Status() gateway.AdapterStatus
- func (a *Adapter) Stop(_ context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter implements gateway.Adapter for Slack using Socket Mode.
func (*Adapter) SendFile ¶
func (a *Adapter) SendFile(ctx context.Context, channelID, sender, filename string, data []byte, mimeType string) error
SendFile uploads a file to a Slack channel.
func (*Adapter) Status ¶
func (a *Adapter) Status() gateway.AdapterStatus
Status returns the current connection state.
Click to show internal directories.
Click to hide internal directories.