feishu

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts map[string]any) (channel.Channel, error)

New creates a Feishu channel adapter.

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) Reply

func (p *HTTPChannel) Reply(ctx context.Context, rctx any, content string) error

func (*HTTPChannel) Send

func (p *HTTPChannel) Send(ctx context.Context, rctx any, content string) error

func (*HTTPChannel) Start

func (p *HTTPChannel) Start(handler channel.MessageHandler) error

func (*HTTPChannel) Stop

func (p *HTTPChannel) Stop() error

type WSChannel

type WSChannel struct {
	// contains filtered or unexported fields
}

WSChannel implements channel.Channel using Feishu WebSocket long-connection mode.

func (*WSChannel) Name

func (p *WSChannel) Name() string

func (*WSChannel) ReconstructReplyCtx

func (p *WSChannel) ReconstructReplyCtx(sessionKey string) (any, error)

func (*WSChannel) Reply

func (p *WSChannel) Reply(ctx context.Context, rctx any, content string) error

func (*WSChannel) Send

func (p *WSChannel) Send(ctx context.Context, rctx any, content string) error

func (*WSChannel) Start

func (p *WSChannel) Start(handler channel.MessageHandler) error

func (*WSChannel) Stop

func (p *WSChannel) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL