Documentation ¶
Index ¶
- func ApplyTeamBotSettings(ctx context.Context, g *globals.Context, botUID gregor1.UID, ...) (bool, error)
- func MakeConversationCommandGroups(cmds []chat1.UserBotCommandOutput) chat1.ConversationCommandGroups
- func SortCommandsForMatching(cmds []chat1.UserBotCommandOutput)
- 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, alias map[string]string, err error)
- func (b *CachingBotCommandManager) PublicCommandsConv(ctx context.Context, username string) (*chat1.ConversationID, 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 ApplyTeamBotSettings ¶
func ApplyTeamBotSettings(ctx context.Context, g *globals.Context, botUID gregor1.UID, botSettings keybase1.TeamBotSettings, msg chat1.MessagePlaintext, convID *chat1.ConversationID, mentionMap map[string]struct{}, debug utils.DebugLabeler) (bool, error)
func MakeConversationCommandGroups ¶
func MakeConversationCommandGroups(cmds []chat1.UserBotCommandOutput) chat1.ConversationCommandGroups
func SortCommandsForMatching ¶
func SortCommandsForMatching(cmds []chat1.UserBotCommandOutput)
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, nameInfoSource nameInfoSourceFn) *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, alias map[string]string, err error)
func (*CachingBotCommandManager) PublicCommandsConv ¶
func (b *CachingBotCommandManager) PublicCommandsConv(ctx context.Context, username string) (*chat1.ConversationID, 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.