Documentation
¶
Overview ¶
Package slacksm provides the Slack SocketMode implementation of the communication interface.
Index ¶
- Constants
- type Assistant
- func (a *Assistant) AddChannel(channelID string, dbLabInstance *dblab.Instance)
- func (a *Assistant) CheckIdleSessions(ctx context.Context)
- func (a *Assistant) Deregister(_ context.Context) error
- func (a *Assistant) DumpSessions()
- func (a *Assistant) Init() error
- func (a *Assistant) Register(ctx context.Context) error
- func (a *Assistant) RestoreSessions(ctx context.Context) error
- type Config
Constants ¶
View Source
const CommunicationType = "slacksm"
CommunicationType defines a workspace type.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assistant ¶
type Assistant struct {
// contains filtered or unexported fields
}
Assistant provides a service for interaction with a communication channel.
func NewAssistant ¶
func NewAssistant(cfg *config.Credentials, appCfg *config.Config, pack *features.Pack, platformClient *platform.Client, sessionStorage storage.SessionStorage) *Assistant
NewAssistant returns a new assistant service.
func (*Assistant) AddChannel ¶
AddChannel sets a message processor for a specific channel.
func (*Assistant) CheckIdleSessions ¶
CheckIdleSessions check the running user sessions for idleness.
func (*Assistant) Deregister ¶
Deregister deregisters the assistant service.
func (*Assistant) DumpSessions ¶
func (a *Assistant) DumpSessions()
DumpSessions collects user's data from every message processor to sessionStorage.
Click to show internal directories.
Click to hide internal directories.