Documentation
¶
Index ¶
- Variables
- type Service
- func (s *Service) DefaultSchedulePunchAllUsers() error
- func (s *Service) Login(discordUserID string) (string, error)
- func (s *Service) Punch(accessToken string) error
- func (s *Service) Register(user *domain.User) error
- func (s *Service) SetDayOff(discordUserID string, year, month, day int) error
- func (s *Service) TryToLogin(account, password string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var R *rand.Rand
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Session *discordgo.Session Cfg *config.Config Repo repository.Repository }
func NewService ¶
func NewService(cfg *config.Config, repo repository.Repository, session *discordgo.Session) Service
func (*Service) DefaultSchedulePunchAllUsers ¶
Click to show internal directories.
Click to hide internal directories.