Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertPlayerWin ¶
func AssertPlayerWin(t *testing.T, store *StubPlayerStore, winner string)
Types ¶
type FileSystemPlayerStore ¶
type FileSystemPlayerStore struct {
// contains filtered or unexported fields
}
func FileSystemPlayerStoreFromFile ¶
func FileSystemPlayerStoreFromFile(path string) (*FileSystemPlayerStore, func(), error)
func NewFileSystemPlayerStore ¶
func NewFileSystemPlayerStore(file *os.File) (*FileSystemPlayerStore, error)
func (*FileSystemPlayerStore) GetLeague ¶
func (f *FileSystemPlayerStore) GetLeague() League
func (*FileSystemPlayerStore) GetLeagueSort ¶
func (f *FileSystemPlayerStore) GetLeagueSort() League
func (*FileSystemPlayerStore) GetPlayerScore ¶
func (f *FileSystemPlayerStore) GetPlayerScore(name string) int
func (*FileSystemPlayerStore) RecordWin ¶
func (f *FileSystemPlayerStore) RecordWin(name string)
type PlayerServer ¶
func NewPlayerServer ¶
func NewPlayerServer(store PlayerStore) *PlayerServer
type PlayerStore ¶
type StubPlayerStore ¶
type StubPlayerStore struct {
// contains filtered or unexported fields
}
func (*StubPlayerStore) GetLeague ¶
func (s *StubPlayerStore) GetLeague() League
func (*StubPlayerStore) GetPlayerScore ¶
func (s *StubPlayerStore) GetPlayerScore(name string) int
func (*StubPlayerStore) RecordWin ¶
func (s *StubPlayerStore) RecordWin(name string)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.