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 ¶
type NoopGameRecorder ¶
type NoopGameRecorder struct{}
func (NoopGameRecorder) End ¶
func (r NoopGameRecorder) End(context.Context, v1.GameRequest) error
func (NoopGameRecorder) Move ¶
func (r NoopGameRecorder) Move(context.Context, v1.GameRequest, string) error
func (NoopGameRecorder) Start ¶
func (r NoopGameRecorder) Start(context.Context, v1.GameRequest) error
type StdOutGameRecorder ¶
type StdOutGameRecorder struct{}
func (StdOutGameRecorder) End ¶
func (r StdOutGameRecorder) End(ctx context.Context, req v1.GameRequest) error
func (StdOutGameRecorder) Move ¶
func (r StdOutGameRecorder) Move(ctx context.Context, req v1.GameRequest, move string) error
func (StdOutGameRecorder) Start ¶
func (r StdOutGameRecorder) Start(ctx context.Context, req v1.GameRequest) error
Click to show internal directories.
Click to hide internal directories.