models

package
v0.0.0-...-6e78754 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	gorm.Model
	IP        string
	SessionID string
}

type Event

type Event struct {
	gorm.Model
	ID          uint `gorm:"primarykey"`
	Name        string
	Description string
	Comment     string
	Police      bool
	Zoll        bool
	PVM         bool
	Infos       bool
	Simple      bool
	Stop        bool
	IP          string
	Date        string
}

type Infos

type Infos struct {
	Features []struct {
		Geometry struct {
			Coordinates []float64 `json:"coordinates"`
			Type        string    `json:"type"`
		} `json:"geometry"`
		ID         int `json:"id"`
		Properties struct {
			Clignot      bool   `json:"clignot"`
			Code         string `json:"code"`
			CodeChantier string `json:"code_chantier"`
			Date         string `json:"date"`
			DateEvtDebut string `json:"date_evt_debut"`
			DateEvtFin   string `json:"date_evt_fin"`
			Description  string `json:"description"`
			Docs         []struct {
				Href  string `json:"href"`
				IDVue int    `json:"id_vue"`
				Name  string `json:"name"`
			} `json:"docs"`
			Echelle          int    `json:"echelle"`
			IDRepere         int    `json:"id_repere"`
			Pourcentage      int    `json:"pourcentage"`
			RecurrenceActive bool   `json:"recurrence_active"`
			RefBarreau       int    `json:"ref_barreau"`
			Source           string `json:"source"`
			Titre            string `json:"titre"`
			Type             string `json:"type"`
			URLIcone         string `json:"url_icone"`
		} `json:"properties"`
		Type string `json:"type"`
	} `json:"features"`
	Type string `json:"type"`
}

type PVM

type PVM struct {
	Type     string `json:"type"`
	Features []struct {
		Type       string `json:"type"`
		ID         string `json:"id"`
		Properties struct {
			IDPmv     string `json:"id_pmv"`
			Ligne00   string `json:"ligne0_0"`
			Ligne01   string `json:"ligne0_1"`
			Ligne10   string `json:"ligne1_0"`
			Ligne11   string `json:"ligne1_1"`
			Ligne20   string `json:"ligne2_0"`
			Ligne21   string `json:"ligne2_1"`
			Ligne30   string `json:"ligne3_0"`
			Ligne31   string `json:"ligne3_1"`
			DateMaj   string `json:"date_maj"`
			Optique   string `json:"optique"`
			URLPicto0 string `json:"urlPicto0"`
			URLPicto1 string `json:"urlPicto1"`
			Titre     string `json:"titre"`
			Type      string `json:"type"`
			URLIcone  string `json:"url_icone"`
			Echelle   string `json:"echelle"`
			Source    string `json:"source"`
		} `json:"properties"`
		Geometry struct {
			Type        string    `json:"type"`
			Coordinates []float64 `json:"coordinates"`
		} `json:"geometry"`
	} `json:"features"`
}

Jump to

Keyboard shortcuts

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