Documentation
¶
Index ¶
- Variables
- func Context(ctx context.Context) context.Context
- func PickNewFile(ctx context.Context) error
- func RemoveCurrent(ctx context.Context) error
- func RemoveTemp(ctx context.Context) error
- func Reset(ctx context.Context) error
- func SetCurrentFile(ctx context.Context, path string) error
- func SetListened(ctx context.Context, l time.Time) error
- func SetListenedNow(ctx context.Context) error
- func SetTags(ctx context.Context, t *media.Tags) error
- func SetTagsFromBrainzRecording(ctx context.Context, rec brainz.Recording) error
- func SetTagsFromBrainzRelease(ctx context.Context, rel *brainz.Release) error
- func SetTempFile(ctx context.Context, path string) error
- type State
- func (s *State) PickNewFile(ctx context.Context) error
- func (s *State) RemoveCurrent(ctx context.Context) error
- func (s *State) RemoveTemp() error
- func (s *State) Reset() error
- func (s *State) SetCurrentFile(ctx context.Context, path string) error
- func (s *State) SetTagsFromBrainzRecording(ctx context.Context, rec brainz.Recording) error
- func (s *State) SetTagsFromBrainzRelease(ctx context.Context, rel *brainz.Release) error
- func (s *State) SetTempFile(path string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingFile = errors.New("missing file") ErrMissingTempFile = errors.New("missing temp file") ErrMissingTags = errors.New("missing tags") )
View Source
var ErrMissingState = errors.New("state missing in context")
Functions ¶
func PickNewFile ¶ added in v0.3.1
func RemoveCurrent ¶ added in v0.3.1
func RemoveTemp ¶ added in v0.3.1
func SetListenedNow ¶ added in v0.3.1
func SetTagsFromBrainzRecording ¶ added in v0.3.2
func SetTagsFromBrainzRelease ¶ added in v0.3.2
Types ¶
type State ¶
type State struct {
Listened time.Time
Tags *media.Tags
CurrentFile *media.Probe
TempFile *media.Probe
TotalFiles int
}
func (*State) RemoveTemp ¶
func (*State) SetCurrentFile ¶
func (*State) SetTagsFromBrainzRecording ¶ added in v0.3.2
func (*State) SetTagsFromBrainzRelease ¶ added in v0.3.2
func (*State) SetTempFile ¶
Click to show internal directories.
Click to hide internal directories.