services

package
v0.0.0-...-8f83242 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tokens

type Tokens []string

func (Tokens) String

func (tokens Tokens) String() string

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) ListTokens

func (s *UserService) ListTokens(chatId int64) Tokens

O(n)

func (*UserService) ResolveToken

func (s *UserService) ResolveToken(token string) string

func (*UserService) SetToken

func (s *UserService) SetToken(token string, fromUser model.TelegramUser, chatId int64)

Jump to

Keyboard shortcuts

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