service

package
v0.0.0-...-916f8e4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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