shared

package
v0.0.0-...-dd22c21 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureMux

func ConfigureMux(f mongo.ContextFactory) *chi.Mux

ConfigureMux configures default mux

func CreateContextFactory

func CreateContextFactory(p mongo.SessionProvider) mongo.ContextFactory

CreateContextFactory instance

func CreateContextSessionProvider

func CreateContextSessionProvider(c context.Context) mongo.SessionProvider

CreateContextSessionProvider instance

func CreateCopySessionProvider

func CreateCopySessionProvider(p mongo.SessionProvider) mongo.SessionProvider

CreateCopySessionProvider instance

func CreateLogger

func CreateLogger(prefix string) logger.Logger

CreateLogger creates new logger

func CreateOperationExecutor

func CreateOperationExecutor(p mongo.SessionProvider) mongo.OperationExecutor

CreateOperationExecutor instance

func CreateRepositoryFactory

func CreateRepositoryFactory(e mongo.OperationExecutor) persistence.RepositoryFactory

CreateRepositoryFactory instance

func CreateServiceFactory

func CreateServiceFactory(f persistence.RepositoryFactory) *services.ServiceFactory

CreateServiceFactory instance

func CreateSessionFactory

func CreateSessionFactory() mongo.SessionFactory

CreateSessionFactory instance

func CreateSessionProvider

func CreateSessionProvider(f mongo.SessionFactory) mongo.SessionProvider

CreateSessionProvider instance

func GetInterruptChan

func GetInterruptChan() <-chan os.Signal

GetInterruptChan gets interrupt channel

func GetNameOrDefault

func GetNameOrDefault(defName string) string

GetNameOrDefault gets name from environment variable or fallbacks to default one

func GetPortOrDefault

func GetPortOrDefault(defPort int) int

GetPortOrDefault gets port from environment variable or fallbacks to default one

func StartBus

func StartBus(ctx context.Context, c string, l logger.Logger)

StartBus starts bus

func StartMux

func StartMux(m *chi.Mux, port int, l logger.Logger)

StartMux starts mux

func StopBus

func StopBus()

StopBus stops bus

Types

This section is empty.

Jump to

Keyboard shortcuts

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