container

package
v0.0.0-...-9e41cc5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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

func (c *Container) Close() error

func (*Container) GetContactRepository

func (c *Container) GetContactRepository() repositories.Contact

func (*Container) GetContactService

func (c *Container) GetContactService() services.ContactService

func (*Container) GetDatabasePool

func (c *Container) GetDatabasePool() *pgxpool.Pool

func (*Container) GetPostRepository

func (c *Container) GetPostRepository() repositories.Post

func (*Container) GetSession

func (c *Container) GetSession() *session.Store

func (*Container) GetStorage

func (c *Container) GetStorage(database int) fiber.Storage

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 (c *Container) GetURLSigner() utils.URLSigner

func (*Container) GetValidator

func (c *Container) GetValidator() *validator.Validate

Jump to

Keyboard shortcuts

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