Documentation ¶
Overview ¶
Package app initializes the application locator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GracefulDBShutdown ¶
GracefulDBShutdown close all db opened connection.
Types ¶
type Locator ¶
type Locator struct { Config *config.Config DBx *sqlx.DB Storage *sqluct.Storage ctxd.LoggerProvider clockSrv.ClockProvider VioService *service.VioService VioRESTService *service.VioRESTService VioMetricsService *servers.Metrics // contains filtered or unexported fields }
Locator defines application resources.
func NewServiceLocator ¶
NewServiceLocator creates application locator.
func (*Locator) GeoStorage ¶
func (l *Locator) GeoStorage() usecase.GeolocationDataStorage
GeoStorage returns geolocation data storage.
type Option ¶
type Option func(l *Locator)
Option sets up service locator.
func WithGRPCOptions ¶
WithGRPCOptions sets up gRPC server options.
func WithGRPCRestOptions ¶
WithGRPCRestOptions sets up gRPC REST server options.
func WithMetrics ¶
WithMetrics sets up metrics server.
Click to show internal directories.
Click to hide internal directories.