Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OngoingTaskPool ¶
type OngoingTaskPool struct {
// contains filtered or unexported fields
}
func NewOngoingTaskPool ¶
func NewOngoingTaskPool() *OngoingTaskPool
func (*OngoingTaskPool) Add ¶
func (t *OngoingTaskPool) Add(info TaskInfo)
func (*OngoingTaskPool) Len ¶
func (t *OngoingTaskPool) Len() int
func (*OngoingTaskPool) Remove ¶
func (t *OngoingTaskPool) Remove()
type TaskInfo ¶
type TaskInfo struct { Platform bot.FromPlatform `json:"platform"` URL string `json:"url"` // url to summarize Language string `json:"language"` ChatID int64 `json:"chatID"` // only for telegram MessageID int `json:"messageID"` // used to edit the reply message of request, not work in slack or discordbot currently ChannelID string `json:"channelID"` // for slack and discordbot TeamID string `json:"teamID"` // only for slack, used to query access token and refresh token }
Click to show internal directories.
Click to hide internal directories.