Documentation ¶
Index ¶
- type Services
- type WorkerService
- func (s *WorkerService) CleanMessages(messages []twitter.DirectMessageEvent, response string, archive bool)
- func (s *WorkerService) DeleteBatchMessage(messageIDs []string)
- func (s *WorkerService) DeleteMessage(messageID string) error
- func (s *WorkerService) FilterMessage(keyword string, messages []twitter.DirectMessageEvent) (correctMessages, incorrectMessages []twitter.DirectMessageEvent)
- func (s *WorkerService) GetBatchMessageID(messages []twitter.DirectMessageEvent) ([]string, error)
- func (s *WorkerService) GetMessages(count int) ([]twitter.DirectMessageEvent, error)
- func (s *WorkerService) GetUserInfo() (twitter.User, error)
- func (s *WorkerService) SaveBatchMessage(messages []twitter.DirectMessageEvent)
- func (s *WorkerService) SaveMessage(message twitter.DirectMessageEvent) error
- func (s *WorkerService) SendBatchMessage(params []twitter.DirectMessageEventMessage)
- func (s *WorkerService) SendTweet(message twitter.DirectMessageEvent) (twitter.Tweet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Services ¶
type Services struct {
*WorkerService
}
func GetServices ¶
func GetServices(app *app.AutobaseApp) *Services
type WorkerService ¶
type WorkerService struct {
// contains filtered or unexported fields
}
func NewWorkerService ¶
func NewWorkerService(app *app.AutobaseApp) *WorkerService
func (*WorkerService) CleanMessages ¶
func (s *WorkerService) CleanMessages(messages []twitter.DirectMessageEvent, response string, archive bool)
func (*WorkerService) DeleteBatchMessage ¶
func (s *WorkerService) DeleteBatchMessage(messageIDs []string)
func (*WorkerService) DeleteMessage ¶
func (s *WorkerService) DeleteMessage(messageID string) error
func (*WorkerService) FilterMessage ¶
func (s *WorkerService) FilterMessage(keyword string, messages []twitter.DirectMessageEvent) (correctMessages, incorrectMessages []twitter.DirectMessageEvent)
func (*WorkerService) GetBatchMessageID ¶
func (s *WorkerService) GetBatchMessageID(messages []twitter.DirectMessageEvent) ([]string, error)
func (*WorkerService) GetMessages ¶
func (s *WorkerService) GetMessages(count int) ([]twitter.DirectMessageEvent, error)
func (*WorkerService) GetUserInfo ¶
func (s *WorkerService) GetUserInfo() (twitter.User, error)
func (*WorkerService) SaveBatchMessage ¶
func (s *WorkerService) SaveBatchMessage(messages []twitter.DirectMessageEvent)
func (*WorkerService) SaveMessage ¶
func (s *WorkerService) SaveMessage(message twitter.DirectMessageEvent) error
func (*WorkerService) SendBatchMessage ¶
func (s *WorkerService) SendBatchMessage(params []twitter.DirectMessageEventMessage)
func (*WorkerService) SendTweet ¶
func (s *WorkerService) SendTweet(message twitter.DirectMessageEvent) (twitter.Tweet, error)
Click to show internal directories.
Click to hide internal directories.