Documentation ¶
Overview ¶
Package services implements all aplication services.
Package services implements all aplication services.
Package services implements all aplication services.
Package services implements all aplication services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account interface { Create(ctx context.Context, user *models.User) error Get(ctx context.Context, user *models.User) (*models.User, error) IsExist(ctx context.Context, user *models.User) bool }
Account implements user account functionalities.
type Callback ¶
type Callback interface { Menu(ctx context.Context, msg tgbotapi.MessageConfig, user *models.User) tgbotapi.MessageConfig Help(ctx context.Context, msg tgbotapi.MessageConfig, user *models.User) tgbotapi.MessageConfig Information(ctx context.Context, msg tgbotapi.MessageConfig, user *models.User) tgbotapi.MessageConfig Media(ctx context.Context, msg tgbotapi.MessageConfig, user *models.User) tgbotapi.MessageConfig MediaOptions(ctx context.Context, msg tgbotapi.MessageConfig, user *models.User) tgbotapi.MessageConfig PickRandom(ctx context.Context, msg tgbotapi.MessageConfig, user *models.User, media models.Media) tgbotapi.MessageConfig SaveWhat(ctx context.Context, msg tgbotapi.MessageConfig, user *models.User, media models.Media) tgbotapi.MessageConfig Save(ctx context.Context, msg tgbotapi.MessageConfig, user *models.User, media models.Media) tgbotapi.MessageConfig List(ctx context.Context, msg tgbotapi.MessageConfig, user *models.User, media models.Media) tgbotapi.MessageConfig RemoveWhat(ctx context.Context, msg tgbotapi.MessageConfig, user *models.User, media models.Media) tgbotapi.MessageConfig Remove(ctx context.Context, msg tgbotapi.MessageConfig, user *models.User, media models.Media, callBackData string) tgbotapi.MessageConfig }
Callback implements callback functionalities.
type Command ¶
type Command interface {
Help(ctx context.Context, msg tgbotapi.MessageConfig, user *models.User) tgbotapi.MessageConfig
}
Command implements command functionalities.
type Message ¶
type Message interface { Wrong(ctx context.Context, msg tgbotapi.MessageConfig, user *models.User) tgbotapi.MessageConfig Save(ctx context.Context, msg tgbotapi.MessageConfig, user *models.User, mediaType models.Media, update tgbotapi.Update) (tgbotapi.MessageConfig, error) }
Message implements message functionalities.
Directories ¶
Path | Synopsis |
---|---|
package account implements account functionalities.
|
package account implements account functionalities. |
package callback implements callback request functionalities.
|
package callback implements callback request functionalities. |
package command implements command request functionalities.
|
package command implements command request functionalities. |
package account implements message request functionalities.
|
package account implements message request functionalities. |
Click to show internal directories.
Click to hide internal directories.