Documentation ¶
Index ¶
- type Categories
- type CategoryService
- func (c *CategoryService) Add(ctx context.Context, telegramChatID int64, name string) error
- func (c *CategoryService) AddToBeRenamedToCategory(ctx context.Context, telegramChatID int64, name string) error
- func (c *CategoryService) List(ctx context.Context, telegramChatID int64) ([]core.Category, error)
- func (c *CategoryService) Remove(ctx context.Context, telegramChatID int64, name string) error
- func (c *CategoryService) Rename(ctx context.Context, telegramChatID int64, newName string) error
- type Deps
- type InteractionService
- type Interactions
- type Logger
- type NoteService
- func (n *NoteService) Add(ctx context.Context, telegramChatID int64, categoryName, content string) error
- func (n *NoteService) ListInCategory(ctx context.Context, telegramChatID int64, categoryName string) ([]core.Note, error)
- func (n *NoteService) Remove(ctx context.Context, telegramChatID int64, categoryName, content string) error
- type Notes
- type Services
- type UserService
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Categories ¶
type Categories interface { Add(ctx context.Context, telegramChatID int64, name string) error Remove(ctx context.Context, telegramChatID int64, name string) error AddToBeRenamedToCategory(ctx context.Context, telegramChatID int64, name string) error Rename(ctx context.Context, telegramChatID int64, newName string) error List(ctx context.Context, telegramChatID int64) ([]core.Category, error) }
type CategoryService ¶
type CategoryService struct {
// contains filtered or unexported fields
}
func NewCategoryService ¶
func NewCategoryService(logger Logger, repo repository.Categories) *CategoryService
func (*CategoryService) AddToBeRenamedToCategory ¶
type Deps ¶
type Deps struct { Repository *repository.Repository Logger }
type InteractionService ¶
type InteractionService struct {
// contains filtered or unexported fields
}
func NewInteractionService ¶
func NewInteractionService(logger Logger, repo repository.Interactions) *InteractionService
type Interactions ¶
type NoteService ¶
type NoteService struct {
// contains filtered or unexported fields
}
func NewNoteService ¶
func NewNoteService(logger Logger, repo repository.Notes) *NoteService
func (*NoteService) ListInCategory ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(logger Logger, repo repository.Users) *UserService
func (*UserService) CheckChatIDExists ¶
func (u *UserService) CheckChatIDExists(ctx context.Context, telegramChatID int64) error
func (*UserService) CreateIfNotExists ¶
func (u *UserService) CreateIfNotExists(ctx context.Context, telegramChatID int64) error
Click to show internal directories.
Click to hide internal directories.