record

package
v0.0.0-...-ddd92f3 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EOF = errors.New("EOF")

Functions

This section is empty.

Types

type Record

type Record struct {
	sync.Mutex

	Head    []byte  `json:"head"`
	Patches []patch `json:"states"`
	// contains filtered or unexported fields
}

func Load

func Load(fileName string) (*Record, error)

func New

func New() (*Record, error)

func (*Record) Add

func (r *Record) Add(v interface{}) error

func (*Record) CurrentFrameIndex

func (r *Record) CurrentFrameIndex() int

func (*Record) First

func (r *Record) First(v interface{}) error

func (*Record) Last

func (r *Record) Last(v interface{}) error

func (*Record) Next

func (r *Record) Next(v interface{}) error

func (*Record) Progress

func (r *Record) Progress() float64

func (*Record) Reset

func (r *Record) Reset()

func (*Record) Save

func (r *Record) Save(fileName string) error

func (*Record) TotalFrames

func (r *Record) TotalFrames() int

Jump to

Keyboard shortcuts

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