Documentation ¶
Index ¶
- Constants
- type DB
- func (d *DB) Create(name string, convID chat1.ConvIDStr, isConv bool, ...) (created bool, err error)
- func (d *DB) Get(name string, convID chat1.ConvIDStr, macroName string) (message string, err error)
- func (d *DB) List(name string, convID chat1.ConvIDStr) (list []Macro, err error)
- func (d *DB) Remove(name string, convID chat1.ConvIDStr, macroName string) (removed bool, err error)
- type HTTPSrv
- type Handler
- type Macro
Constants ¶
View Source
const (
CreateCmdHelp = `` /* 346-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPSrv ¶
func NewHTTPSrv ¶
func NewHTTPSrv(stats *base.StatsRegistry, debugConfig *base.ChatDebugOutputConfig) *HTTPSrv
type Handler ¶
type Handler struct { sync.Mutex *base.DebugOutput // contains filtered or unexported fields }
func NewHandler ¶
func NewHandler(stats *base.StatsRegistry, kbc *kbchat.API, debugConfig *base.ChatDebugOutputConfig, db *DB) *Handler
func (*Handler) HandleCommand ¶
func (h *Handler) HandleCommand(msg chat1.MsgSummary) error
func (*Handler) HandleNewConv ¶
func (h *Handler) HandleNewConv(conv chat1.ConvSummary) error
Click to show internal directories.
Click to hide internal directories.