tracks

package
Version: v0.0.0-...-9e3d11e Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

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

Session maps channel numbers to track info.

func NewSession

func NewSession(num int) *Session

func (*Session) Equal

func (s *Session) Equal(s2 *Session) bool

Equal returns true if the two Session objects are equal.

func (*Session) Num

func (s *Session) Num() int

func (*Session) SetTracks

func (s *Session) SetTracks(ts Tracks) *Session

func (*Session) String

func (s *Session) String() string

String implements the fmt.Stringer interface.

func (*Session) Tracks

func (s *Session) Tracks() Tracks

type Sessions

type Sessions map[int]*Session

Sessions holds a map of session numbers to Session data.

func ExtractSessions

func ExtractSessions(files []string) (Sessions, error)

ExtractSessions from a slice of track names.

func (Sessions) Equal

func (ss Sessions) Equal(ss2 Sessions) bool

Equal returns true if the two Sessions are equivalent.

func (Sessions) Session

func (ss Sessions) Session(num int) *Session

Session returns the pointer to session `num`. If the session doesn't yet exist, it is created.

type Track

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

Track holds metadata about a track.

func NewTrack

func NewTrack(name string, tnum, snum int) *Track

NewTrack returns an instantiated Track object.

func (*Track) Dest

func (t *Track) Dest() string

func (*Track) Equal

func (t *Track) Equal(t2 *Track) bool

Equal returns true if the tracks are equal.

func (*Track) Name

func (t *Track) Name() string

func (*Track) SessionNum

func (t *Track) SessionNum() int

func (*Track) SetDest

func (t *Track) SetDest(dest string) *Track

func (*Track) SetName

func (t *Track) SetName(name string) *Track

func (*Track) SetSrc

func (t *Track) SetSrc(src string) *Track

func (*Track) Src

func (t *Track) Src() string

func (*Track) String

func (t *Track) String() string

String implements the fmt.Stringer interface.

func (*Track) TrackNum

func (t *Track) TrackNum() int

type TrackSlice

type TrackSlice []*Track

TrackSlice is a slice of tracks.

func (TrackSlice) Len

func (ts TrackSlice) Len() int

Sort tracks based on their track number.

func (TrackSlice) Less

func (ts TrackSlice) Less(i, j int) bool

func (TrackSlice) Swap

func (ts TrackSlice) Swap(i, j int)

type Tracks

type Tracks map[int]*Track

Tracks is a map of tracks.

func (Tracks) Equal

func (ts Tracks) Equal(ts2 Tracks) bool

Equal returns true if the two Tracks are equivalent.

func (Tracks) Slice

func (ts Tracks) Slice() []*Track

Slice returns the Tracks as a slice.

Jump to

Keyboard shortcuts

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