contract

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INFOFILE = "meta.json"
)

Variables

View Source
var (
	VALIDTYPES = map[string]bool{
		"CO2":   true,
		"AUDIO": true,
	}
)

Functions

This section is empty.

Types

type AudioRecord

type AudioRecord struct {
	Tipo           string        `json:"tipo"`
	Dispositivo    string        `json:"dispositivo"`
	Desplazamiento []Coordenadas `json:"desplazamiento"`
	// TODO agree in a timeformat to store it in db
	Inicio  string  `json:"inicio"`
	Fin     string  `json:"fin"`
	Name    string  `json:"audiofile"`
	CO2     float64 `json:"co2"`
	Content []byte  `json:"content,omitempty"`
}

func InspectBundle

func InspectBundle(zipPath string) (*AudioRecord, error)

type Coordenadas

type Coordenadas struct {
	Lat float64 `json:"lat"`
	Log float64 `json:"log"`
}

Jump to

Keyboard shortcuts

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