Documentation ¶
Index ¶
- type AuthService
- func (s AuthService) ChangePassword(ctx context.Context, userID string, container structs.PasswordsContainer, ...) error
- func (s AuthService) CleanSession(userID string)
- func (s AuthService) GetTokenPair(ctx context.Context, identity structs.IdentityData, cfg config.AuthConfig) (structs.TokenPair, error)
- func (s AuthService) Refresh(refreshString, userID string, cfg config.AuthConfig) (structs.TokenPair, error)
- type CardsRepo
- type CardsService
- func (s CardsService) DeleteCardByID(ctx context.Context, id string) error
- func (s CardsService) ReturnCardByID(ctx context.Context, id string) (structs.Card, error)
- func (s CardsService) ReturnCards(ctx context.Context, params structs.CardQueryParameters) ([]structs.Card, int, error)
- func (s CardsService) SaveCard(ctx context.Context, form *multipart.Form) error
- type ContactRepo
- type ContactService
- type FeedbackService
- type PartnersRepo
- type PartnersService
- func (p PartnersService) DeletePartnerByID(ctx context.Context, ID string, chWell chan struct{}) error
- func (s PartnersService) ReturnPartners(ctx context.Context, params structs.PartnerQueryParameters) ([]structs.Partner, int, error)
- func (p PartnersService) SavePartner(ctx context.Context, form *multipart.Form, chWell chan struct{}) error
- type RepoInterface
- type ReportService
- type Services
- type SliderRepo
- type SliderService
- type UserRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
Repo UserRepo
}
func (AuthService) ChangePassword ¶
func (s AuthService) ChangePassword(ctx context.Context, userID string, container structs.PasswordsContainer, cfg config.AuthConfig) error
func (AuthService) CleanSession ¶
func (s AuthService) CleanSession(userID string)
func (AuthService) GetTokenPair ¶
func (s AuthService) GetTokenPair(ctx context.Context, identity structs.IdentityData, cfg config.AuthConfig) (structs.TokenPair, error)
func (AuthService) Refresh ¶
func (s AuthService) Refresh(refreshString, userID string, cfg config.AuthConfig) (structs.TokenPair, error)
type CardsRepo ¶
type CardsRepo interface { SelectAllCards(context.Context, structs.CardQueryParameters) ([]structs.Card, error) InsertCard(context.Context, structs.Card) error CountRowsTable(context.Context, string) (int, error) SelectCardByID(context.Context, string) (structs.Card, error) DelCardByID(context.Context, string) error }
type CardsService ¶
type CardsService struct {
Repo CardsRepo
}
func (CardsService) DeleteCardByID ¶
func (s CardsService) DeleteCardByID(ctx context.Context, id string) error
func (CardsService) ReturnCardByID ¶
func (CardsService) ReturnCards ¶
func (s CardsService) ReturnCards(ctx context.Context, params structs.CardQueryParameters) ([]structs.Card, int, error)
type ContactRepo ¶
type ContactService ¶
type ContactService struct {
Repo ContactRepo
}
type FeedbackService ¶
type FeedbackService struct {
// contains filtered or unexported fields
}
func NewFeedbackService ¶
func NewFeedbackService(cfg config.SMTP) (FeedbackService, error)
func (FeedbackService) PassFeedback ¶
type PartnersRepo ¶
type PartnersRepo interface { SelectAllPartners(context.Context, structs.PartnerQueryParameters) ([]structs.Partner, error) InsertPartner(context.Context, structs.Partner, chan struct{}) error DelPartnerByID(context.Context, string) (string, error) CountRowsTable(context.Context, string) (int, error) }
type PartnersService ¶
type PartnersService struct {
Repo PartnersRepo
}
func (PartnersService) DeletePartnerByID ¶
func (p PartnersService) DeletePartnerByID(ctx context.Context, ID string, chWell chan struct{}) error
func (PartnersService) ReturnPartners ¶
func (s PartnersService) ReturnPartners(ctx context.Context, params structs.PartnerQueryParameters) ([]structs.Partner, int, error)
func (PartnersService) SavePartner ¶
type RepoInterface ¶
type RepoInterface interface { CardsRepo PartnersRepo SliderRepo ContactRepo UserRepo }
type ReportService ¶
type ReportService struct{}
func (ReportService) ChangeReport ¶
func (s ReportService) ChangeReport(form *multipart.Form) error
func (ReportService) DeleteReport ¶
func (s ReportService) DeleteReport() error
func (ReportService) ReturnReport ¶
func (s ReportService) ReturnReport() (string, error)
type Services ¶
type Services struct { CardsService PartnersService SliderService ReportService ContactService FeedbackService AuthService }
func NewService ¶
func NewService(repo RepoInterface, cfg config.SMTP) (Services, error)
type SliderRepo ¶
type SliderService ¶
type SliderService struct {
Repo SliderRepo
}
func (SliderService) DeleteSlideByID ¶
func (s SliderService) DeleteSlideByID(ctx context.Context, ID string, chWell chan struct{}) error
func (SliderService) ReturnSlider ¶
func (SliderService) SaveSlider ¶
Click to show internal directories.
Click to hide internal directories.