Documentation ¶
Index ¶
- func MakeConversationCommandGroups(cmds []chat1.UserBotCommandOutput) chat1.ConversationCommandGroups
- type CachingBotCommandManager
- func (b *CachingBotCommandManager) Advertise(ctx context.Context, alias *string, ads []chat1.AdvertiseCommandsParam) (err error)
- func (b *CachingBotCommandManager) Clear(ctx context.Context) (err error)
- func (b *CachingBotCommandManager) ListCommands(ctx context.Context, convID chat1.ConversationID) (res []chat1.UserBotCommandOutput, err error)
- func (b *CachingBotCommandManager) Start(ctx context.Context, uid gregor1.UID)
- func (b *CachingBotCommandManager) Stop(ctx context.Context) chan struct{}
- func (b *CachingBotCommandManager) UpdateCommands(ctx context.Context, convID chat1.ConversationID, info *chat1.BotInfo) (completeCh chan error, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeConversationCommandGroups ¶
func MakeConversationCommandGroups(cmds []chat1.UserBotCommandOutput) chat1.ConversationCommandGroups
Types ¶
type CachingBotCommandManager ¶
type CachingBotCommandManager struct { globals.Contextified utils.DebugLabeler sync.Mutex // contains filtered or unexported fields }
func NewCachingBotCommandManager ¶
func NewCachingBotCommandManager(g *globals.Context, ri func() chat1.RemoteInterface) *CachingBotCommandManager
func (*CachingBotCommandManager) Advertise ¶
func (b *CachingBotCommandManager) Advertise(ctx context.Context, alias *string, ads []chat1.AdvertiseCommandsParam) (err error)
func (*CachingBotCommandManager) Clear ¶
func (b *CachingBotCommandManager) Clear(ctx context.Context) (err error)
func (*CachingBotCommandManager) ListCommands ¶
func (b *CachingBotCommandManager) ListCommands(ctx context.Context, convID chat1.ConversationID) (res []chat1.UserBotCommandOutput, err error)
func (*CachingBotCommandManager) Start ¶
func (b *CachingBotCommandManager) Start(ctx context.Context, uid gregor1.UID)
func (*CachingBotCommandManager) Stop ¶
func (b *CachingBotCommandManager) Stop(ctx context.Context) chan struct{}
func (*CachingBotCommandManager) UpdateCommands ¶
func (b *CachingBotCommandManager) UpdateCommands(ctx context.Context, convID chat1.ConversationID, info *chat1.BotInfo) (completeCh chan error, err error)
Click to show internal directories.
Click to hide internal directories.