Documentation ¶
Index ¶
- Variables
- func CameraGuess(input string) string
- func CopyFile(src string, dst string, buffersize int, progressbar *mpb.Bar, ...) error
- func DownloadFile(filepath string, url string, progressbar *mpb.Bar, mtime *time.Time) error
- func FindFolderInPath(entirePath, directory string) (string, error)
- func GetNewBar(progressBar *mpb.Progress, total int64, filename string, barType BarType) *mpb.Bar
- func GetOrder(sortoptions SortOptions, GetLocation locationUtil, ...) string
- func ReverseLocation(location Location) (string, error)
- func Unzip(src string, dest string) error
- type BarType
- type Camera
- type ConnectionType
- type DurationResponse
- type FFprobe
- func (f *FFprobe) Duration(path string) (*DurationResponse, error)
- func (f *FFprobe) Frames(path string) (*FramesResponse, error)
- func (f *FFprobe) GPSLocation(path string) (*Location, error)
- func (f *FFprobe) Streams(path string) (*StreamsResponse, error)
- func (f *FFprobe) VideoSize(path string) (*VideoSizeResponse, error)
- type FramesResponse
- type GPSLocation
- type Import
- type ImportParams
- type Location
- type Result
- type ResultCounter
- type SortOptions
- type StreamsResponse
- type VideoSizeResponse
- type WriteCounter
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *http.Client
View Source
var DateFormatReplacer = strings.NewReplacer("dd", "02", "mm", "01", "yyyy", "2006")
Functions ¶
func CameraGuess ¶
func DownloadFile ¶
func FindFolderInPath ¶
func GetOrder ¶
func GetOrder(sortoptions SortOptions, GetLocation locationUtil, osPathname, out, mediaDate, deviceName string) string
func ReverseLocation ¶
Types ¶
type ConnectionType ¶
type ConnectionType string
const ( SDCard ConnectionType = "sd_card" Connect ConnectionType = "connect" )
type DurationResponse ¶
type DurationResponse struct { Programs []interface{} `json:"programs"` Streams []struct { Duration float32 `json:"duration,string"` } `json:"streams"` }
type FramesResponse ¶
type FramesResponse struct { Programs []interface{} `json:"programs"` Streams []struct { Frames int `json:"nb_frames,string"` } `json:"streams"` }
type GPSLocation ¶
type GPSLocation struct { Format struct { Tags struct { Location string `json:"location"` } `json:"tags"` } `json:"format"` }
type Import ¶
type Import interface {
Import(params ImportParams) (*Result, error)
}
type ImportParams ¶
type ImportParams struct {
Input, Output, CameraName string
SkipAuxiliaryFiles bool
DateFormat string
BufferSize int
Prefix string
DateRange []time.Time
TagNames []string
Connection ConnectionType
Sort SortOptions
}
type Location ¶
func LocationFromEXIF ¶
type ResultCounter ¶
type ResultCounter struct { Errors []error FilesNotImported []string FilesImported int // contains filtered or unexported fields }
func (*ResultCounter) Get ¶
func (rc *ResultCounter) Get() Result
func (*ResultCounter) SetFailure ¶
func (rc *ResultCounter) SetFailure(err error, file string)
func (*ResultCounter) SetSuccess ¶
func (rc *ResultCounter) SetSuccess()
type SortOptions ¶
type StreamsResponse ¶
type VideoSizeResponse ¶
type WriteCounter ¶
type WriteCounter struct {
Total uint64
}
func (WriteCounter) PrintProgress ¶
func (wc WriteCounter) PrintProgress()
Click to show internal directories.
Click to hide internal directories.