gamerecorder

package
v0.0.0-...-af1c52e Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileArchive

type FileArchive struct {
	// contains filtered or unexported fields
}

FileArchive is a gamerecorder implementation that writes games to gzipped archives in the given path

func (*FileArchive) End

func (r *FileArchive) End(ctx context.Context, req v1.GameRequest) error

func (*FileArchive) Move

func (r *FileArchive) Move(ctx context.Context, req v1.GameRequest, move string) error

func (*FileArchive) Shutdown

func (r *FileArchive) Shutdown() error

func (*FileArchive) Start

func (r *FileArchive) Start(ctx context.Context, req v1.GameRequest) error

type GameRecorder

type GameRecorder interface {
	Start(context.Context, v1.GameRequest) error
	Move(context.Context, v1.GameRequest, string) error
	End(context.Context, v1.GameRequest) error
}

func NewFileArchive

func NewFileArchive(basePath string, pruneInterval time.Duration, maxAgeBeforePrune time.Duration) GameRecorder

type NoopGameRecorder

type NoopGameRecorder struct{}

func (NoopGameRecorder) End

func (NoopGameRecorder) Move

func (NoopGameRecorder) Start

type StdOutGameRecorder

type StdOutGameRecorder struct{}

func (StdOutGameRecorder) End

func (StdOutGameRecorder) Move

func (r StdOutGameRecorder) Move(ctx context.Context, req v1.GameRequest, move string) error

func (StdOutGameRecorder) Start

Jump to

Keyboard shortcuts

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