journal

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package journal provides a mechanism to emit Events from an RxGo (github.com/ReactiveX/RxGo/) Observable any time the game updates the files in the log directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameJournal

type GameJournal struct {
	Events <-chan event.Event
	Errors <-chan error
	// contains filtered or unexported fields
}

GameJournal represents the set of log files produced by Elite as an observable stream of events. DO NOT directly instance this type. Please use the NewJournal() function.

func NewJournal

func NewJournal() (gj GameJournal, err error)

NewJournal creates and initializes a GameJournal.

func (GameJournal) StartMonitor

func (j GameJournal) StartMonitor() (err error)

StartMonitor starts the file watcher and begins emitting events to the Events channel

func (GameJournal) StopMonitor

func (j GameJournal) StopMonitor()

StopMonitor terminates the file watcher, preventing further events being emitted

Jump to

Keyboard shortcuts

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