Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Job ¶
type Job struct { WaveID string StartAt time.Time TimeProcess time.Duration Station traincat.Station Error string }
Job represent data around one job
func (Job) MarshalJSON ¶
MarshalJSON return good formatted json for ElasticSearch
type Realtime ¶
type Realtime struct { WaveID string CheckedAt time.Time State string Schedule time.Time Station traincat.Station Train Train PassageID string }
Realtime represent all data around one passage from SNCF API
func (*Realtime) MarshalJSON ¶
MarshalJSON return good formatted json for ElasticSearch
type Request ¶
type Request struct { WaveID string ResponseTime time.Duration Station traincat.Station CountPassage int StatusCode int SendAt time.Time ResponseBody string Error string }
Request represent all data around one request send to the SNCF API
func (Request) MarshalJSON ¶
MarshalJSON return good formatted json for ElasticSearch
type Wave ¶
Wave represent all data around one wave of call to SNCF API
func (Wave) MarshalJSON ¶
MarshalJSON return good formatted json for ElasticSearch
Click to show internal directories.
Click to hide internal directories.