Documentation ¶
Index ¶
- Variables
- type Collapse
- func (b Collapse) Description() string
- func (h *Collapse) Execute(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) (err error)
- func (b Collapse) Export() chat1.ConversationCommand
- func (b Collapse) HasHelpText() bool
- func (b Collapse) Match(ctx context.Context, text string) bool
- func (b Collapse) Name() string
- func (b Collapse) Preview(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (b Collapse) Usage() string
- type Expand
- func (b Expand) Description() string
- func (h *Expand) Execute(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) (err error)
- func (b Expand) Export() chat1.ConversationCommand
- func (b Expand) HasHelpText() bool
- func (b Expand) Match(ctx context.Context, text string) bool
- func (b Expand) Name() string
- func (b Expand) Preview(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (b Expand) Usage() string
- type Flip
- func (b Flip) Description() string
- func (s *Flip) Execute(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) (err error)
- func (b Flip) Export() chat1.ConversationCommand
- func (b Flip) HasHelpText() bool
- func (b Flip) Match(ctx context.Context, text string) bool
- func (b Flip) Name() string
- func (s *Flip) Preview(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (b Flip) Usage() string
- type Giphy
- func (b Giphy) Description() string
- func (s *Giphy) Execute(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) (err error)
- func (b Giphy) Export() chat1.ConversationCommand
- func (b Giphy) HasHelpText() bool
- func (b Giphy) Match(ctx context.Context, text string) bool
- func (b Giphy) Name() string
- func (s *Giphy) Preview(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (b Giphy) Usage() string
- type Headline
- func (b Headline) Description() string
- func (s *Headline) Execute(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) (err error)
- func (b Headline) Export() chat1.ConversationCommand
- func (b Headline) HasHelpText() bool
- func (b Headline) Match(ctx context.Context, text string) bool
- func (b Headline) Name() string
- func (b Headline) Preview(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (b Headline) Usage() string
- type Hide
- func (b Hide) Description() string
- func (h *Hide) Execute(ctx context.Context, uid gregor1.UID, inConvID chat1.ConversationID, ...) (err error)
- func (b Hide) Export() chat1.ConversationCommand
- func (b Hide) HasHelpText() bool
- func (b Hide) Match(ctx context.Context, text string) bool
- func (b Hide) Name() string
- func (b Hide) Preview(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (b Hide) Usage() string
- type Join
- func (b Join) Description() string
- func (h *Join) Execute(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) (err error)
- func (b Join) Export() chat1.ConversationCommand
- func (b Join) HasHelpText() bool
- func (b Join) Match(ctx context.Context, text string) bool
- func (b Join) Name() string
- func (b Join) Preview(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (b Join) Usage() string
- type Leave
- func (b Leave) Description() string
- func (h *Leave) Execute(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) (err error)
- func (b Leave) Export() chat1.ConversationCommand
- func (b Leave) HasHelpText() bool
- func (b Leave) Match(ctx context.Context, text string) bool
- func (b Leave) Name() string
- func (b Leave) Preview(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (b Leave) Usage() string
- type Location
- func (b Location) Description() string
- func (h *Location) Execute(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) (err error)
- func (b Location) Export() chat1.ConversationCommand
- func (b Location) HasHelpText() bool
- func (b Location) Match(ctx context.Context, text string) bool
- func (b Location) Name() string
- func (h *Location) Preview(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (h *Location) SetClock(clock clockwork.Clock)
- func (b Location) Usage() string
- type Me
- func (b Me) Description() string
- func (s *Me) Execute(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) (err error)
- func (b Me) Export() chat1.ConversationCommand
- func (b Me) HasHelpText() bool
- func (b Me) Match(ctx context.Context, text string) bool
- func (b Me) Name() string
- func (b Me) Preview(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (b Me) Usage() string
- type Msg
- func (b Msg) Description() string
- func (d *Msg) Execute(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) (err error)
- func (b Msg) Export() chat1.ConversationCommand
- func (b Msg) HasHelpText() bool
- func (b Msg) Match(ctx context.Context, text string) bool
- func (b Msg) Name() string
- func (b Msg) Preview(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (b Msg) Usage() string
- type Mute
- func (b Mute) Description() string
- func (h *Mute) Execute(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) (err error)
- func (b Mute) Export() chat1.ConversationCommand
- func (b Mute) HasHelpText() bool
- func (b Mute) Match(ctx context.Context, text string) bool
- func (b Mute) Name() string
- func (b Mute) Preview(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (b Mute) Usage() string
- type Shrug
- func (b Shrug) Description() string
- func (s *Shrug) Execute(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) (err error)
- func (b Shrug) Export() chat1.ConversationCommand
- func (b Shrug) HasHelpText() bool
- func (b Shrug) Match(ctx context.Context, text string) bool
- func (b Shrug) Name() string
- func (b Shrug) Preview(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (b Shrug) Usage() string
- type Source
- func (s *Source) AttemptBuiltinCommand(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...) (handled bool, err error)
- func (s *Source) GetBuiltinCommandType(ctx context.Context, c types.ConversationCommandsSpec) chat1.ConversationBuiltinCommandTyp
- func (s *Source) GetBuiltins(ctx context.Context) (res []chat1.BuiltinCommandGroup)
- func (s *Source) ListCommands(ctx context.Context, uid gregor1.UID, conv types.ConversationCommandsSpec) (res chat1.ConversationCommandGroups, err error)
- func (s *Source) PreviewBuiltinCommand(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (s *Source) SetClock(clock clockwork.Clock)
- type Unhide
- func (b Unhide) Description() string
- func (h *Unhide) Execute(ctx context.Context, uid gregor1.UID, _ chat1.ConversationID, ...) (err error)
- func (b Unhide) Export() chat1.ConversationCommand
- func (b Unhide) HasHelpText() bool
- func (b Unhide) Match(ctx context.Context, text string) bool
- func (b Unhide) Name() string
- func (b Unhide) Preview(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, ...)
- func (b Unhide) Usage() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidArguments = errors.New("invalid arguments")
View Source
var ErrInvalidCommand = errors.New("invalid command")
Functions ¶
This section is empty.
Types ¶
type Collapse ¶
type Collapse struct {
// contains filtered or unexported fields
}
func NewCollapse ¶
func (Collapse) Description ¶
func (b Collapse) Description() string
func (Collapse) Export ¶
func (b Collapse) Export() chat1.ConversationCommand
func (Collapse) HasHelpText ¶
func (b Collapse) HasHelpText() bool
type Expand ¶
type Expand struct {
// contains filtered or unexported fields
}
func (Expand) Description ¶
func (b Expand) Description() string
func (Expand) Export ¶
func (b Expand) Export() chat1.ConversationCommand
func (Expand) HasHelpText ¶
func (b Expand) HasHelpText() bool
type Flip ¶
func (Flip) Description ¶
func (b Flip) Description() string
func (Flip) Export ¶
func (b Flip) Export() chat1.ConversationCommand
func (Flip) HasHelpText ¶
func (b Flip) HasHelpText() bool
type Giphy ¶
func (Giphy) Description ¶
func (b Giphy) Description() string
func (Giphy) Export ¶
func (b Giphy) Export() chat1.ConversationCommand
func (Giphy) HasHelpText ¶
func (b Giphy) HasHelpText() bool
type Headline ¶
type Headline struct {
// contains filtered or unexported fields
}
func NewHeadline ¶
func (Headline) Description ¶
func (b Headline) Description() string
func (Headline) Export ¶
func (b Headline) Export() chat1.ConversationCommand
func (Headline) HasHelpText ¶
func (b Headline) HasHelpText() bool
type Hide ¶
type Hide struct {
// contains filtered or unexported fields
}
func (Hide) Description ¶
func (b Hide) Description() string
func (Hide) Export ¶
func (b Hide) Export() chat1.ConversationCommand
func (Hide) HasHelpText ¶
func (b Hide) HasHelpText() bool
type Join ¶
type Join struct {
// contains filtered or unexported fields
}
func (Join) Description ¶
func (b Join) Description() string
func (Join) Export ¶
func (b Join) Export() chat1.ConversationCommand
func (Join) HasHelpText ¶
func (b Join) HasHelpText() bool
type Leave ¶
type Leave struct {
// contains filtered or unexported fields
}
func (Leave) Description ¶
func (b Leave) Description() string
func (Leave) Export ¶
func (b Leave) Export() chat1.ConversationCommand
func (Leave) HasHelpText ¶
func (b Leave) HasHelpText() bool
type Location ¶
func NewLocation ¶
func (Location) Description ¶
func (b Location) Description() string
func (Location) Export ¶
func (b Location) Export() chat1.ConversationCommand
func (Location) HasHelpText ¶
func (b Location) HasHelpText() bool
type Me ¶
type Me struct {
// contains filtered or unexported fields
}
func (Me) Description ¶
func (b Me) Description() string
func (Me) Export ¶
func (b Me) Export() chat1.ConversationCommand
func (Me) HasHelpText ¶
func (b Me) HasHelpText() bool
type Msg ¶
type Msg struct {
// contains filtered or unexported fields
}
func (Msg) Description ¶
func (b Msg) Description() string
func (Msg) Export ¶
func (b Msg) Export() chat1.ConversationCommand
func (Msg) HasHelpText ¶
func (b Msg) HasHelpText() bool
type Mute ¶
type Mute struct {
// contains filtered or unexported fields
}
func (Mute) Description ¶
func (b Mute) Description() string
func (Mute) Export ¶
func (b Mute) Export() chat1.ConversationCommand
func (Mute) HasHelpText ¶
func (b Mute) HasHelpText() bool
type Shrug ¶
type Shrug struct {
// contains filtered or unexported fields
}
func (Shrug) Description ¶
func (b Shrug) Description() string
func (Shrug) Export ¶
func (b Shrug) Export() chat1.ConversationCommand
func (Shrug) HasHelpText ¶
func (b Shrug) HasHelpText() bool
type Source ¶
type Source struct { globals.Contextified utils.DebugLabeler // contains filtered or unexported fields }
func (*Source) AttemptBuiltinCommand ¶
func (*Source) GetBuiltinCommandType ¶
func (s *Source) GetBuiltinCommandType(ctx context.Context, c types.ConversationCommandsSpec) chat1.ConversationBuiltinCommandTyp
func (*Source) GetBuiltins ¶
func (s *Source) GetBuiltins(ctx context.Context) (res []chat1.BuiltinCommandGroup)
func (*Source) ListCommands ¶
func (s *Source) ListCommands(ctx context.Context, uid gregor1.UID, conv types.ConversationCommandsSpec) (res chat1.ConversationCommandGroups, err error)
func (*Source) PreviewBuiltinCommand ¶
type Unhide ¶
type Unhide struct {
// contains filtered or unexported fields
}
func (Unhide) Description ¶
func (b Unhide) Description() string
func (Unhide) Export ¶
func (b Unhide) Export() chat1.ConversationCommand
func (Unhide) HasHelpText ¶
func (b Unhide) HasHelpText() bool
Click to show internal directories.
Click to hide internal directories.