Documentation
¶
Index ¶
- func New(opts map[string]any) (channel.Channel, error)
- type HTTPChannel
- func (p *HTTPChannel) Name() string
- func (p *HTTPChannel) ReconstructReplyCtx(sessionKey string) (any, error)
- func (p *HTTPChannel) RegisterHTTPRoutes(r chi.Router, callbackPath string, handler channel.MessageHandler)
- func (p *HTTPChannel) Reply(ctx context.Context, rctx any, content string) error
- func (p *HTTPChannel) Send(ctx context.Context, rctx any, content string) error
- func (p *HTTPChannel) Start(handler channel.MessageHandler) error
- func (p *HTTPChannel) Stop() error
- type WSChannel
- func (p *WSChannel) Name() string
- func (p *WSChannel) ReconstructReplyCtx(sessionKey string) (any, error)
- func (p *WSChannel) Reply(ctx context.Context, rctx any, content string) error
- func (p *WSChannel) Send(ctx context.Context, rctx any, content string) error
- func (p *WSChannel) Start(handler channel.MessageHandler) error
- func (p *WSChannel) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPChannel ¶
type HTTPChannel struct {
// contains filtered or unexported fields
}
HTTPChannel implements channel.Channel for Feishu HTTP webhook callback.
func (*HTTPChannel) Name ¶
func (p *HTTPChannel) Name() string
func (*HTTPChannel) ReconstructReplyCtx ¶
func (p *HTTPChannel) ReconstructReplyCtx(sessionKey string) (any, error)
func (*HTTPChannel) RegisterHTTPRoutes ¶
func (p *HTTPChannel) RegisterHTTPRoutes(r chi.Router, callbackPath string, handler channel.MessageHandler)
func (*HTTPChannel) Start ¶
func (p *HTTPChannel) Start(handler channel.MessageHandler) error
func (*HTTPChannel) Stop ¶
func (p *HTTPChannel) Stop() error
Click to show internal directories.
Click to hide internal directories.