player

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestRegeneratePlayerData

func TestRegeneratePlayerData(t *testing.T)

Types

type IPlayerAPI

type IPlayerAPI interface {
	GetPlayerData() ([]byte, error)
}

func FixturePlayerAPIMock

func FixturePlayerAPIMock() IPlayerAPI

type Player

type Player struct {
	Time   string
	Name   string
	System string
	Region string
}

type PlayerAPI

type PlayerAPI struct {
	api.APIrequest
	// contains filtered or unexported fields
}

func NewPlayerAPI

func NewPlayerAPI() PlayerAPI

func (PlayerAPI) GetPlayerData

func (b PlayerAPI) GetPlayerData() ([]byte, error)

type PlayerStorage

type PlayerStorage struct {
	records.Records[records.StampedObjects[Player]]
	// contains filtered or unexported fields
}

func NewPlayerStorage

func NewPlayerStorage(api IPlayerAPI) *PlayerStorage

func (*PlayerStorage) Update

func (b *PlayerStorage) Update()

Conveniently born some factory

type SerializedPlayers

type SerializedPlayers struct {
	Error   interface{} `json:"error"`
	Players []struct {
		Time   string `json:"time"`
		Name   string `json:"name"`
		System string `json:"system"`
		Region string `json:"region"`
	} `json:"players"`
	Timestamp string `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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