infrastructure

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Config *configuration.ConfigurationSchema
	Logger *logger.Logger
	DB     *database.DB
	Redis  *redis.Client
}

func NewInfrastructure

func NewInfrastructure(cf *configuration.ConfigurationSchema) *Service

func (*Service) CloseConnection

func (infra *Service) CloseConnection()

func (*Service) CreateAPIService

func (infra *Service) CreateAPIService() error

func (*Service) MigrateDB

func (infra *Service) MigrateDB() error

func (*Service) RollbackDB

func (infra *Service) RollbackDB() error

func (*Service) StopGracefully

func (infra *Service) StopGracefully(server *http.Server, serverErr chan error)

Jump to

Keyboard shortcuts

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