Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPHandler ¶
func HTTPHandler(db TelemetryDB) http.HandlerFunc
Types ¶
type PostgresDB ¶
type PostgresDB struct {
// contains filtered or unexported fields
}
func (*PostgresDB) Save ¶
func (db *PostgresDB) Save(t *Telemetry) error
type Telemetry ¶
type Telemetry struct { Timestamp time.Time `json:"timestamp"` Remote net.IP `json:"remote"` UA string `json:"ua"` DL float64 `json:"dl"` UL float64 `json:"ul"` Ping float64 `json:"ping"` Jitter float64 `json:"jitter"` Log string `json:"log"` Building string `json:"building"` SessionID string `json:"sessionid"` }
type TelemetryDB ¶
func MakeDB ¶
func MakeDB(name string) (TelemetryDB, error)
func NewCSVLog ¶
func NewCSVLog() (TelemetryDB, error)
func NewJSONLog ¶
func NewJSONLog() (TelemetryDB, error)
func NewLogDB ¶
func NewLogDB() (TelemetryDB, error)
func NewNoneDB ¶
func NewNoneDB() (TelemetryDB, error)
func NewPostgresDB ¶
func NewPostgresDB() (TelemetryDB, error)
Click to show internal directories.
Click to hide internal directories.