service

package
v0.0.0-...-e141167 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TodayQuestion = leetcode.TodayRecord{}
)
View Source
var (
	UserNameMap = make(map[string]model.User)
)

Functions

func Hello

func Hello()

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(d *dao.Dao, bot *opq.Bot) *Service

func (*Service) InitBot

func (s *Service) InitBot()

func (*Service) LoadQuestionOfToday

func (s *Service) LoadQuestionOfToday()

func (*Service) NotifyQuestionOfToday

func (s *Service) NotifyQuestionOfToday()

func (*Service) NotifyQuestionOfTodayNight

func (s *Service) NotifyQuestionOfTodayNight()

func (*Service) ReloadUsers

func (s *Service) ReloadUsers()

func (*Service) ReloadUsersWithRefresh

func (s *Service) ReloadUsersWithRefresh()

func (*Service) SendLeetCodeSubmitMessage

func (s *Service) SendLeetCodeSubmitMessage(user model.User, submission leetcode.RecentSubmissions)

func (*Service) SendNotifyQuestionOfTodayMessage

func (s *Service) SendNotifyQuestionOfTodayMessage(ctx context.Context)

func (*Service) SendNotifyQuestionOfTodayNightMessage

func (s *Service) SendNotifyQuestionOfTodayNightMessage(ctx context.Context)

Jump to

Keyboard shortcuts

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