handlers

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Action4TimeLayout = "02-01-2006 15-04-05"

Action4TimeLayout _

View Source
const AverMediaTimeLayout = "20060102_150405"

AverMediaTimeLayout _

View Source
const GeforceDVRTimeLayout = "2006.01.02 - 15.04.05.99"

GeforceDVRTimeLayout _

View Source
const GeforceFullTimeLayout = "2006.01.02 - 15.04.05.99"

GeforceFullTimeLayout _

View Source
const PlaysTvTimeLayout = "2006_01_02_15_04_05"

PlaysTvTimeLayout _

Variables

View Source
var Action4Regexp = regexp.MustCompile("(\\d{2}-\\d{2}-\\d{4} \\d{2}-\\d{2}-\\d{2})")

Action4Regexp _

View Source
var AverMediaRegexp = regexp.MustCompile("(\\d{8}\\_\\d{6})")

AverMediaRegexp _

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

ErrNoTimeMatches _

View Source
var GeforceDVRRegexp = regexp.MustCompile("(\\d{4}\\.\\d{2}\\.\\d{2} - \\d{2}\\.\\d{2}\\.\\d{2}\\.\\d{2})")

GeforceDVRRegexp _

View Source
var GeforceDVRRegexpFull = regexp.MustCompile("(\\d{4}\\.\\d{2}\\.\\d{2} - \\d{2}\\.\\d{2}\\.\\d{2}\\.\\d{2})(\\.DVR)")

GeforceDVRRegexpFull _

View Source
var GeforceFullRegexp = regexp.MustCompile("(\\d{4}\\.\\d{2}\\.\\d{2} - \\d{2}\\.\\d{2}\\.\\d{2}\\.\\d{2})")

GeforceFullRegexp _

View Source
var PlaysTvRegexp = regexp.MustCompile("(\\d{4}_\\d{2}_\\d{2}_\\d{2}_\\d{2}_\\d{2})")

PlaysTvRegexp _

Functions

This section is empty.

Types

type Action4

type Action4 struct {
}

Action4 _

func NewAction4

func NewAction4() *Action4

NewAction4 _

func (*Action4) Extract

func (gf *Action4) Extract(file files.Filer) (time.Time, error)

Extract _

func (*Action4) HandlerName

func (gf *Action4) HandlerName() string

HandlerName _

func (*Action4) IsMatch

func (gf *Action4) IsMatch(file files.Filer) bool

IsMatch _

type AverMedia

type AverMedia struct {
}

AverMedia _

func NewAverMedia

func NewAverMedia() *AverMedia

NewAverMedia _

func (*AverMedia) Extract

func (gf *AverMedia) Extract(file files.Filer) (time.Time, error)

Extract _

func (*AverMedia) HandlerName

func (gf *AverMedia) HandlerName() string

HandlerName _

func (*AverMedia) IsMatch

func (gf *AverMedia) IsMatch(file files.Filer) bool

IsMatch _

type DurationCalculator

type DurationCalculator interface {
	CalculateDuration(file files.Filer) (float64, error)
}

DurationCalculator _

type GeforceDVR

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

GeforceDVR _

func NewGeforceDVR

func NewGeforceDVR(durationCalculator DurationCalculator) *GeforceDVR

NewGeforceDVR _

func (*GeforceDVR) Extract

func (gf *GeforceDVR) Extract(file files.Filer) (time.Time, error)

Extract _

func (*GeforceDVR) HandlerName

func (gf *GeforceDVR) HandlerName() string

HandlerName _

func (*GeforceDVR) IsMatch

func (gf *GeforceDVR) IsMatch(file files.Filer) bool

IsMatch _

type GeforceFull

type GeforceFull struct {
}

GeforceFull _

func NewGeforceFull

func NewGeforceFull() *GeforceFull

NewGeforceFull _

func (*GeforceFull) Extract

func (gf *GeforceFull) Extract(file files.Filer) (time.Time, error)

Extract _

func (*GeforceFull) HandlerName

func (gf *GeforceFull) HandlerName() string

HandlerName _

func (*GeforceFull) IsMatch

func (gf *GeforceFull) IsMatch(file files.Filer) bool

IsMatch _

type PlaysTv

type PlaysTv struct {
}

PlaysTv _

func NewPlaysTv

func NewPlaysTv() *PlaysTv

NewPlaysTv _

func (*PlaysTv) Extract

func (gf *PlaysTv) Extract(file files.Filer) (time.Time, error)

Extract _

func (*PlaysTv) HandlerName

func (gf *PlaysTv) HandlerName() string

HandlerName _

func (*PlaysTv) IsMatch

func (gf *PlaysTv) IsMatch(file files.Filer) bool

IsMatch _

Jump to

Keyboard shortcuts

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