chtime

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoTimeInformation = errors.New("No timecode information in string")

ErrNoTimeInformation _

View Source
var ErrNoTimeMatches = errors.New("No time matches")

ErrNoTimeMatches _

Functions

func ExtractTime

func ExtractTime(file files.Filer) (time.Time, string, error)

ExtractTime _

Types

type ExtractTimeHandler

type ExtractTimeHandler interface {
	IsMatch(file files.Filer) bool
	Extract(file files.Filer) (time.Time, error)
	HandlerName() string
}

ExtractTimeHandler _

type Instance added in v0.8.0

type Instance struct {
	// contains filtered or unexported fields
}

Instance _

func New added in v0.8.0

func New(file files.Filer) *Instance

New _

func (*Instance) GetTimecode added in v0.8.0

func (t *Instance) GetTimecode() (time.Time, error)

GetTimecode _

func (*Instance) Perform added in v0.8.0

func (t *Instance) Perform() Result

Perform _

type RecursiveInstance added in v0.8.0

type RecursiveInstance struct {
	// contains filtered or unexported fields
}

RecursiveInstance _

func NewRecursive added in v0.8.0

func NewRecursive(path files.Pather) *RecursiveInstance

NewRecursive _

func (*RecursiveInstance) Perform added in v0.8.0

func (rt *RecursiveInstance) Perform() (chan Result, chan bool)

Perform _

type Result added in v0.8.0

type Result struct {
	Ok          bool
	Time        time.Time
	File        files.Filer
	UsedHandler string
	Error       error
}

Result _

type TimecodeExtractor added in v0.8.0

type TimecodeExtractor interface {
	GetTimecode() (time.Time, error)
}

TimecodeExtractor _

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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