Documentation
¶
Index ¶
- type WeComChannel
- func (c *WeComChannel) BeginStream(_ context.Context, chatID string) (channels.Streamer, error)
- func (c *WeComChannel) Name() string
- func (c *WeComChannel) Send(ctx context.Context, msg bus.OutboundMessage) ([]string, error)
- func (c *WeComChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) ([]string, error)
- func (c *WeComChannel) Start(ctx context.Context) error
- func (c *WeComChannel) Stop(_ context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WeComChannel ¶
type WeComChannel struct {
*channels.BaseChannel
// contains filtered or unexported fields
}
func NewChannel ¶
func NewChannel(bc *config.Channel, cfg *config.WeComSettings, messageBus *bus.MessageBus) (*WeComChannel, error)
func (*WeComChannel) BeginStream ¶
func (*WeComChannel) Name ¶
func (c *WeComChannel) Name() string
func (*WeComChannel) Send ¶
func (c *WeComChannel) Send(ctx context.Context, msg bus.OutboundMessage) ([]string, error)
func (*WeComChannel) SendMedia ¶
func (c *WeComChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) ([]string, error)
Click to show internal directories.
Click to hide internal directories.