Documentation ¶
Index ¶
- type AdminService
- type CarService
- type Client
- type MetricRecorder
- type ProviderData
- type ProviderLookup
- type ProviderService
- func (s *ProviderService) RegisterEvent(ctx context.Context, req *RegisterEventRequest) (*ProviderData, error)
- func (s *ProviderService) StoreEventExtra(ctx context.Context, entry *model.DbEventExtra) error
- func (s *ProviderService) UpdateAnalysisData(ctx context.Context, eventKey string) error
- func (s *ProviderService) UpdateReplayInfo(ctx context.Context, eventKey string) error
- type RegisterEventRequest
- type SpeedmapService
- type StateService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminService ¶ added in v0.8.0
type AdminService struct {
// contains filtered or unexported fields
}
func InitAdminService ¶ added in v0.8.0
func InitAdminService(pool *pgxpool.Pool) *AdminService
func (*AdminService) DeleteEvent ¶ added in v0.8.0
func (s *AdminService) DeleteEvent(id int) error
type CarService ¶
type CarService struct {
// contains filtered or unexported fields
}
func InitCarService ¶
func InitCarService(pool *pgxpool.Pool) *CarService
type Client ¶
type Client struct { WampClient *client.Client CancelFunc context.CancelFunc }
contains informations about the connected Provider Client
type MetricRecorder ¶ added in v0.10.0
type MetricRecorder struct { Recorder metric.Float64Histogram MsgCounter int }
type ProviderData ¶
type ProviderData struct { Event *model.DbEvent Analysis *model.DbAnalysis Registered time.Time Clients []*Client // currently not used ActiveClient *Client Processor *processing.Processor StopChan chan struct{} // used to stop background tasks StateRecorder MetricRecorder SpeedmapRecorder MetricRecorder AnalysisRecorder MetricRecorder }
type ProviderLookup ¶
type ProviderLookup map[string]*ProviderData
type ProviderService ¶
type ProviderService struct { Lookup ProviderLookup // contains filtered or unexported fields }
func InitProviderService ¶
func InitProviderService(pool *pgxpool.Pool) *ProviderService
func (*ProviderService) RegisterEvent ¶
func (s *ProviderService) RegisterEvent( ctx context.Context, req *RegisterEventRequest) ( *ProviderData, error, )
func (*ProviderService) StoreEventExtra ¶
func (s *ProviderService) StoreEventExtra( ctx context.Context, entry *model.DbEventExtra, ) error
func (*ProviderService) UpdateAnalysisData ¶ added in v0.9.0
func (s *ProviderService) UpdateAnalysisData( ctx context.Context, eventKey string, ) error
func (*ProviderService) UpdateReplayInfo ¶ added in v0.9.0
func (s *ProviderService) UpdateReplayInfo(ctx context.Context, eventKey string) error
type RegisterEventRequest ¶
type SpeedmapService ¶
type SpeedmapService struct {
// contains filtered or unexported fields
}
func InitSpeedmapService ¶
func InitSpeedmapService(pool *pgxpool.Pool) *SpeedmapService
func (*SpeedmapService) AddSpeedmap ¶
func (s *SpeedmapService) AddSpeedmap( ctx context.Context, entry *model.DbSpeedmap, ) error
type StateService ¶
type StateService struct {
// contains filtered or unexported fields
}
func InitStateService ¶
func InitStateService(pool *pgxpool.Pool) *StateService
Click to show internal directories.
Click to hide internal directories.