io

package
v0.0.0-...-2ce81c6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2017 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader interface {
	Read(ctx context.Context) (*Stats, error)
}

Reader handles reading the stats.

func NewDatastoreReader

func NewDatastoreReader(ctx context.Context, projectID string) (Reader, error)

NewDatastoreReader creates a new Writer connected to Datastore.

type Stats

type Stats struct {
	Computed             time.Time
	NumTotal             int
	NumConverted         int
	ConvertedDurationSec int
	LeftDurationSec      int
}

Stats are statistics about converted media.

type Writer

type Writer interface {
	Write(ctx context.Context, s *Stats) error
}

Writer handles writing of the stats.

func NewDatastoreWriter

func NewDatastoreWriter(ctx context.Context, projectID string) (Writer, error)

NewDatastoreWriter creates a new Writer connected to Datastore.

Jump to

Keyboard shortcuts

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