Documentation ¶
Index ¶
- Constants
- type Cloud
- func (cloud *Cloud) FlushStatistics() error
- func (cloud *Cloud) IncrementNewPlayerStatistic()
- func (cloud *Cloud) IncrementPlayerStatistic()
- func (cloud *Cloud) IncrementPlaysStatistic()
- func (cloud *Cloud) String() string
- func (cloud *Cloud) UpdateLeaderboard(playerScores map[string]int) (err error)
- func (cloud *Cloud) UpdatePeriod() time.Duration
- func (cloud *Cloud) UpdateServer(players int) error
- func (cloud *Cloud) UploadTerrainSnapshot(data []byte) error
- type UserData
Constants ¶
View Source
const AWSProfile = "mk48"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cloud ¶
type Cloud struct {
// contains filtered or unexported fields
}
A nil cloud is valid to use with any methods (acts as a no-op) This just means server is in offline mode
func (*Cloud) FlushStatistics ¶
Flushes accumulated statistics to database
func (*Cloud) IncrementNewPlayerStatistic ¶
func (cloud *Cloud) IncrementNewPlayerStatistic()
func (*Cloud) IncrementPlayerStatistic ¶
func (cloud *Cloud) IncrementPlayerStatistic()
func (*Cloud) IncrementPlaysStatistic ¶
func (cloud *Cloud) IncrementPlaysStatistic()
func (*Cloud) UpdateLeaderboard ¶
func (*Cloud) UpdatePeriod ¶
func (*Cloud) UpdateServer ¶
Call at least every 30s
func (*Cloud) UploadTerrainSnapshot ¶
Click to show internal directories.
Click to hide internal directories.