filestore

package
v0.0.0-...-b90c408 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileStore

func NewFileStore(directory string) controller.Store

NewFileStore returns a file based store implementation (1 file per game).

func ReadGameFrames

func ReadGameFrames(dir string, id string) ([]*pb.GameFrame, error)

ReadGameFrames loads all the game frames stored in given file.

func ReadGameInfo

func ReadGameInfo(dir string, id string) (*pb.Game, error)

ReadGameInfo reads the header info from the given file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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