Documentation ¶
Index ¶
- type DialogSession
- type DialogStore
- type InMemoryDialogStore
- func (s *InMemoryDialogStore) Count() int
- func (s *InMemoryDialogStore) Create(slashcommand *model.MMSlashCommand, rootCommand, command string, ...) (*mmmodel.OpenDialogRequest, error)
- func (s *InMemoryDialogStore) Delete(callbackID string) error
- func (s *InMemoryDialogStore) Get(callbackID string) (*DialogSession, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DialogSession ¶
type DialogStore ¶
type DialogStore interface { Create(slashCommand *model.MMSlashCommand, rootCommand, command string, commandsArgs map[string]string, dialog model.Dialog) (*mmmodel.OpenDialogRequest, error) Get(callbackID string) (*DialogSession, error) Delete(callbackID string) error Count() int }
func NewInMemoryDialogStore ¶
func NewInMemoryDialogStore() DialogStore
type InMemoryDialogStore ¶
type InMemoryDialogStore struct {
// contains filtered or unexported fields
}
func (*InMemoryDialogStore) Count ¶
func (s *InMemoryDialogStore) Count() int
func (*InMemoryDialogStore) Create ¶
func (s *InMemoryDialogStore) Create( slashcommand *model.MMSlashCommand, rootCommand, command string, commandArgs map[string]string, dialog model.Dialog, ) (*mmmodel.OpenDialogRequest, error)
func (*InMemoryDialogStore) Delete ¶
func (s *InMemoryDialogStore) Delete(callbackID string) error
func (*InMemoryDialogStore) Get ¶
func (s *InMemoryDialogStore) Get(callbackID string) (*DialogSession, error)
Click to show internal directories.
Click to hide internal directories.