Documentation
¶
Index ¶
- func NewFactory() im.AdapterFactory
- type Adapter
- func (a *Adapter) HandleURLVerification(c *gin.Context) bool
- func (a *Adapter) ParseCallback(c *gin.Context) (*im.IncomingMessage, error)
- func (a *Adapter) Platform() im.Platform
- func (a *Adapter) SendReply(ctx context.Context, incoming *im.IncomingMessage, reply *im.ReplyMessage) error
- func (a *Adapter) VerifyCallback(c *gin.Context) error
- type Client
- func (c *Client) AccessToken(ctx context.Context) (string, error)
- func (c *Client) GatewayURL(ctx context.Context) (string, error)
- func (c *Client) SendC2CMessage(ctx context.Context, openID, content, msgID string) error
- func (c *Client) SendGroupMessage(ctx context.Context, groupOpenID, content, msgID string) error
- type LongConnClient
- type MessageHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() im.AdapterFactory
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func NewAdapter ¶
func (*Adapter) HandleURLVerification ¶
func (*Adapter) ParseCallback ¶
func (*Adapter) SendReply ¶
func (a *Adapter) SendReply(ctx context.Context, incoming *im.IncomingMessage, reply *im.ReplyMessage) error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SendC2CMessage ¶
type LongConnClient ¶
type LongConnClient struct {
// contains filtered or unexported fields
}
func NewLongConnClient ¶
func NewLongConnClient(client *Client, handler MessageHandler) *LongConnClient
func (*LongConnClient) Stop ¶
func (c *LongConnClient) Stop()
type MessageHandler ¶
type MessageHandler func(ctx context.Context, msg *im.IncomingMessage) error
Click to show internal directories.
Click to hide internal directories.