container

package
v0.0.0-...-c42784e Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: GPL-3.0 Imports: 18 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 {
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(
	log logger.Logger,
	masterPostgres, slavePostgres *sqlx.DB,
	redis *redis.Client,
	jwtKey string,
	userServiceConn, pharmacyServiceConn *grpc.ClientConn,
) *Container

func (*Container) CloseAllConnections

func (c *Container) CloseAllConnections()

func (*Container) GetAuthMiddleware

func (c *Container) GetAuthMiddleware() *middleware.AuthMiddleware

func (*Container) GetV1AuthHandler

func (c *Container) GetV1AuthHandler() *authhandler.AuthHandler

func (*Container) GetV1PharmacyHandler

func (c *Container) GetV1PharmacyHandler() *pharmacyhandler.Handler

func (*Container) GetV1SwaggerHandler

func (c *Container) GetV1SwaggerHandler() *swaggerhandler.SwaggerHandler

func (*Container) GetV1UserHandler

func (c *Container) GetV1UserHandler() *userhandler.UserHandler

Jump to

Keyboard shortcuts

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