video

package
v0.0.0-...-902f68f Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2015 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

Package video provides operations on video files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clip

type Clip struct {
	Name      string   `json:"name"`
	Paths     []string `json:"paths"`
	TotalSize int64    `json:"totalSize"`
}

type Source

type Source interface {
	List() ([]*Clip, error)
	Open(path string) (io.ReadCloser, error)
}

func DirectorySource

func DirectorySource(root string) (Source, error)

DirectorySource returns a Source from the given directory, automatically inferring clip layout.

type Storage

type Storage interface {
	Store(path string) (io.WriteCloser, error)
}

Storage is a write-only blob store. filepath paths are used.

func DirectoryStorage

func DirectoryStorage(dir string) Storage

DirectoryStorage returns storage that writes clips to a flat directory.

func MultiStorage

func MultiStorage(s ...Storage) Storage

MultiStorage returns storage that writes to the provided replicas.

Jump to

Keyboard shortcuts

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