Documentation ¶
Overview ¶
Package routes bebopanalyzer API the purpose of this application is to parse bebop metadata fly file it will provided mutliple format files to display analyze yours flies
Terms Of Service: bebop metadata flies json zipped files manager
Title: bebopanalyzer Schemes: https Host: localhost BasePath: / Version: 1.9 Licence: MIT http://opensource.org/licenses/MIT Contact: jeromelesaux@gmail.com
Consumes: - application/json - multipart/form-data
Produces: - application/json
swagger:meta
Index ¶
- Variables
- func AnalyseFly(w http.ResponseWriter, r *http.Request)
- func FileAsResponse(w http.ResponseWriter, streamBytes []byte, filename string)
- func FileInfoAsResponse(w http.ResponseWriter, fileInfo *FileInfo)
- func GetChart(w http.ResponseWriter, r *http.Request)
- func GetFile(w http.ResponseWriter, r *http.Request)
- func GetListTree(w http.ResponseWriter, r *http.Request)
- func GetMaps(w http.ResponseWriter, r *http.Request)
- func JsonAsResponse(w http.ResponseWriter, o interface{})
- func RebuildData(w http.ResponseWriter, r *http.Request)
- type FileImported
- type FileInfo
- type FileInfos
- type GetChartParameters
- type GetFileParameters
- type GetFileResponse
- type GetMapsParameters
Constants ¶
This section is empty.
Variables ¶
var Conf *configuration.AppConfiguration
Functions ¶
func AnalyseFly ¶
func AnalyseFly(w http.ResponseWriter, r *http.Request)
AnalyseFly swagger:route POST /import import
Import JSON fly metadata
Consumes: - multipart/form-data Produces : - application/json Schemes: https Security: Responses : default: fileInfos
func FileAsResponse ¶
func FileAsResponse(w http.ResponseWriter, streamBytes []byte, filename string)
func FileInfoAsResponse ¶
func FileInfoAsResponse(w http.ResponseWriter, fileInfo *FileInfo)
func GetChart ¶
func GetChart(w http.ResponseWriter, r *http.Request)
GetChart swagger:route GET /chart/{serialNumber}/{flyDate} serialNumber flyDate getChart
Get file for type type
Consumes: - application/json Produces : - application/json Schemes: https Security: Responses : default:
func GetFile ¶
func GetFile(w http.ResponseWriter, r *http.Request)
GetFile swagger:route GET /get/{serialNumber}/{flyDate}/{type} serialNumber flyDate type getFile
Get file for type type
Consumes: - application/json Produces : - multipart/form-data Schemes: https Security: Responses : default: getFileResponse
func GetListTree ¶
func GetListTree(w http.ResponseWriter, r *http.Request)
GetListTree swagger:route GET /list getListTree
Get file for type type
Consumes: - application/json Produces : - application/json Schemes: https Security: Responses : default: jsonDataListResponse
func GetMaps ¶
func GetMaps(w http.ResponseWriter, r *http.Request)
GetMaps swagger:route GET /displayFly/{serialNumber}/{flyDate} serialNumber flyDate getMaps
Get file for type type
Consumes: - application/json Produces : - application/json Schemes: http Security: Responses : default: point
func JsonAsResponse ¶
func JsonAsResponse(w http.ResponseWriter, o interface{})
func RebuildData ¶
func RebuildData(w http.ResponseWriter, r *http.Request)
Types ¶
type FileImported ¶
type FileImported struct { // required: true File []byte }
swagger:parameters import
type FileInfo ¶
type FileInfo struct { // name of the file Name string `json:"name"` // size of the file Size int64 `json:"size"` // error string encountered Error string `json:"error,omitempty"` }
informations about the uploaded file swagger:response fileInfo
type FileInfos ¶
type FileInfos struct { // list of the files analyzed // swagger:allOf Files []*FileInfo `json:"files"` }
collaction of the file informations uploaded and traited swagger:response fileInfos
type GetChartParameters ¶
type GetChartParameters struct { // serial number of the drone // required: true SerialNumber string // fly date of instance // required: true FlyDate string }
swagger:parameters getChart
type GetFileParameters ¶
type GetFileParameters struct { // serial number of the drone // required: true SerialNumber string // fly date of instance // required: true FlyDate string // type accepted csv, kmz, gpx, original // required: true Type string }
swagger:parameters getFile
type GetMapsParameters ¶
type GetMapsParameters struct { // serial number of the drone // required: true SerialNumber string // fly date of instance // required: true FlyDate string }
swagger:parameters getMaps