Documentation
¶
Index ¶
- type Tokens
- type UserService
- func (s *UserService) GetChats() []int64
- func (s *UserService) GetChatsStr() []string
- func (s *UserService) GetUsers() []int64
- func (s *UserService) GetUsersByChat(chatId int64) []int64
- func (s *UserService) GetUsersByRecipient(recipientId string) []int64
- func (s *UserService) InvalidateToken(token string)
- func (s *UserService) ListTokens(chatId int64) Tokens
- func (s *UserService) ResolveToken(token string) string
- func (s *UserService) SetToken(token string, fromUser model.TelegramUser, chatId int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(store store.Store) *UserService
func (*UserService) GetChats ¶
func (s *UserService) GetChats() []int64
func (*UserService) GetChatsStr ¶
func (s *UserService) GetChatsStr() []string
func (*UserService) GetUsers ¶
func (s *UserService) GetUsers() []int64
func (*UserService) GetUsersByChat ¶
func (s *UserService) GetUsersByChat(chatId int64) []int64
func (*UserService) GetUsersByRecipient ¶
func (s *UserService) GetUsersByRecipient(recipientId string) []int64
func (*UserService) InvalidateToken ¶
func (s *UserService) InvalidateToken(token string)
func (*UserService) ResolveToken ¶
func (s *UserService) ResolveToken(token string) string
func (*UserService) SetToken ¶
func (s *UserService) SetToken(token string, fromUser model.TelegramUser, chatId int64)
Click to show internal directories.
Click to hide internal directories.