exporter

package
v0.0.0-...-bf9dc68 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	Client *client.Client
}

Dispatcher is those who dispatches chess stats exporters.

func NewDispatcher

func NewDispatcher(username string) *Dispatcher

NewDispatcher creates and returns new dispatcher.

func (*Dispatcher) AllGames

func (d *Dispatcher) AllGames(exporters []Exporter) error

AllGames feeds all games played by provided username to exporters.

type Exporter

type Exporter interface {
	Open() error
	ExportGame(g model.Game, countryName string) error
	Close()
}

Exporter is those who exports chess stats to particular destination.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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