smr

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 2 Imported by: 0

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

	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
}

Jump to

Keyboard shortcuts

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