Documentation ¶
Index ¶
- Variables
- 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) Match(ctx context.Context, text string) bool
- func (b Headline) Name() string
- func (b Headline) Preview(ctx context.Context, text string) error
- 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) Match(ctx context.Context, text string) bool
- func (b Hide) Name() string
- func (b Hide) Preview(ctx context.Context, text string) error
- 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) Match(ctx context.Context, text string) bool
- func (b Join) Name() string
- func (b Join) Preview(ctx context.Context, text string) error
- 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) Match(ctx context.Context, text string) bool
- func (b Leave) Name() string
- func (b Leave) Preview(ctx context.Context, text string) error
- func (b Leave) 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) Match(ctx context.Context, text string) bool
- func (b Me) Name() string
- func (b Me) Preview(ctx context.Context, text string) error
- 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) Match(ctx context.Context, text string) bool
- func (b Msg) Name() string
- func (b Msg) Preview(ctx context.Context, text string) error
- 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) Match(ctx context.Context, text string) bool
- func (b Mute) Name() string
- func (b Mute) Preview(ctx context.Context, text string) error
- 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) Match(ctx context.Context, text string) bool
- func (b Shrug) Name() string
- func (b Shrug) Preview(ctx context.Context, text string) error
- 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)
- 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) Match(ctx context.Context, text string) bool
- func (b Unhide) Name() string
- func (b Unhide) Preview(ctx context.Context, text string) error
- 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 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
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
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
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
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
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
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
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
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)
Click to show internal directories.
Click to hide internal directories.