service

package
v0.0.0-...-28981a6 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackgroundTasks

type BackgroundTasks struct {
	// contains filtered or unexported fields
}

func NewBackgroundTasks

func NewBackgroundTasks(cfg config.BackgroundTasksConfig, logger *zerolog.Logger, useCase UseCase) *BackgroundTasks

func (*BackgroundTasks) Start

func (b *BackgroundTasks) Start(ctx context.Context)

type HTTPServer

type HTTPServer struct {
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer(
	httpCfg config.HTTPServerConfig,
	logger *zerolog.Logger,
	startupCheckSvc *StartupCheckService,
	currencyController *currency.Controller,
) *HTTPServer

func (*HTTPServer) Start

func (s *HTTPServer) Start() error

type PostgresCheck

type PostgresCheck struct {
	// contains filtered or unexported fields
}

func NewPostgresCheck

func NewPostgresCheck(name string, pool *pgxpool.Pool) *PostgresCheck

func (*PostgresCheck) Execute

func (check *PostgresCheck) Execute(ctx context.Context) (interface{}, error)

func (*PostgresCheck) Name

func (check *PostgresCheck) Name() string

type PostgresDB

type PostgresDB struct {
	// contains filtered or unexported fields
}

func NewPostgresDB

func NewPostgresDB(
	ctx context.Context,
	cfg config.PostgresConfig,
	logger *zerolog.Logger,
	startupCheckSvc *StartupCheckService,
) *PostgresDB

func (PostgresDB) GetPool

func (d PostgresDB) GetPool() *pgxpool.Pool

type StartupCheckService

type StartupCheckService struct {
	// contains filtered or unexported fields
}

func NewStartupCheck

func NewStartupCheck(startupCheckCfg config.CheckConfig) *StartupCheckService

func (*StartupCheckService) GetCheckPeriod

func (s *StartupCheckService) GetCheckPeriod() time.Duration

func (*StartupCheckService) GetChecker

func (s *StartupCheckService) GetChecker() gosundheit.Health

type UseCase

type UseCase interface {
	Update(ctx context.Context, er *entity.CurrencyPair) error
	Init(ctx context.Context, pair *entity.CurrencyPair) error
}

Jump to

Keyboard shortcuts

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