crossfeed-logger: github.com/freeflightsim/crossfeed-logger/cvslog Index | Files

package cvslog

import "github.com/freeflightsim/crossfeed-logger/cvslog"

package `cvslog` reads data from csv files for now

Index

Package Files

cvs_files.go db_defs.go doc.go staging.go

Constants

const (
    C_FID = iota
    C_CALLSIGN
    C_LAT
    C_LON
    C_ALT_FT
    C_MODEL
    C_SPD_KT
    C_HDG_TRUE
    C_DIST_NM
    C_AIRBONE_SECS
)

fid,callsign,lat,lon,alt_ft,model,spd_kts,hdg,dist_nm,update,tot_secs

func ListFiles Uses

func ListFiles(csv_dir string) ([]FileInfo, error)

Lists log files available (later we need to recognise flag of imported)

type FileInfo Uses

type FileInfo struct {
    FileName string ` json:"filename"  `
    Date     string ` json:"date"  `
    Size     int64  ` json:"size"  `
}

Basic CSV file Info

type ImportInfo Uses

type ImportInfo struct {
    Source  string ` json:"source" `
    Lines   int64  ` json:"lines" `
    Started string
    Ended   string
}

func StageFile Uses

func StageFile(path_to_file string) (*ImportInfo, error)

Package cvslog imports 9 packages (graph) and is imported by 1 packages. Updated 2017-08-26. Refresh now. Tools for package owners.