history

package
v0.0.0-...-a380f54 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2018 License: BSD-2-Clause Imports: 4 Imported by: 2

Documentation

Overview

Package history implements functionality for fetching/adding to play history.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// Add a play event to the store.
	Add(index.Path) error
	// Get the play events associated to a path.
	Get(index.Path) []time.Time
}

Store is an interface which defines methods necessary for fetching/adding to play history for index paths. All times are stored in UTC.

func NewStore

func NewStore(path string) (Store, error)

NewStore creates a basic implementation of a play history store, using the given path as the source of data. If the file does not exist it will be created.

Jump to

Keyboard shortcuts

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