Documentation
¶
Index ¶
- type Adapter
- func (a *Adapter) ChunkMessage(content string) []string
- func (a *Adapter) GetAccessToken() (string, error)
- func (a *Adapter) SendMessage(ctx context.Context, sessionID string, msg *base.ChatMessage) error
- func (a *Adapter) SetSender(fn func(ctx context.Context, sessionID string, msg *base.ChatMessage) error)
- func (a *Adapter) Stop() error
- type CallbackRequest
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
func NewAdapter ¶
func (*Adapter) ChunkMessage ¶
func (*Adapter) GetAccessToken ¶
func (*Adapter) SendMessage ¶
type CallbackRequest ¶
type CallbackRequest struct {
MsgType string `json:"msgtype"`
ConversationID string `json:"conversationId"`
SenderID string `json:"senderId"`
SenderNick string `json:"senderNick"`
IsAdmin bool `json:"isAdmin"`
RobotCode string `json:"robotCode"`
Text struct {
Content string `json:"content"`
} `json:"text"`
EventType string `json:"eventType"`
}
Click to show internal directories.
Click to hide internal directories.