Documentation ¶
Index ¶
- type Container
- func (c *Container) Close() error
- func (c *Container) GetContactRepository() repositories.Contact
- func (c *Container) GetContactService() services.ContactService
- func (c *Container) GetDatabasePool() *pgxpool.Pool
- func (c *Container) GetPostRepository() repositories.Post
- func (c *Container) GetSession() *session.Store
- func (c *Container) GetStorage(database int) fiber.Storage
- func (c *Container) GetSubscriptionRepository() repositories.Subscribe
- func (c *Container) GetSubscriptionService() services.SubscribeService
- func (c *Container) GetTranslator() ut.Translator
- func (c *Container) GetURLSigner() utils.URLSigner
- func (c *Container) GetValidator() *validator.Validate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { Ctx context.Context Logger zerolog.Logger DB *pgxpool.Pool Config *config.Config // contains filtered or unexported fields }
func (*Container) GetContactRepository ¶
func (c *Container) GetContactRepository() repositories.Contact
func (*Container) GetContactService ¶
func (c *Container) GetContactService() services.ContactService
func (*Container) GetDatabasePool ¶
func (*Container) GetPostRepository ¶
func (c *Container) GetPostRepository() repositories.Post
func (*Container) GetSession ¶
func (*Container) GetStorage ¶
func (*Container) GetSubscriptionRepository ¶
func (c *Container) GetSubscriptionRepository() repositories.Subscribe
func (*Container) GetSubscriptionService ¶
func (c *Container) GetSubscriptionService() services.SubscribeService
func (*Container) GetTranslator ¶
func (c *Container) GetTranslator() ut.Translator
func (*Container) GetURLSigner ¶
func (*Container) GetValidator ¶
func (c *Container) GetValidator() *validator.Validate
Click to show internal directories.
Click to hide internal directories.