watermillmsg

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanUpDataCmdPayload

type CleanUpDataCmdPayload struct {
	Server CleanUpDataCmdPayloadServer `json:"server"`
}

type CleanUpDataCmdPayloadServer

type CleanUpDataCmdPayloadServer struct {
	Key                      string    `json:"key"`
	VersionCode              string    `json:"versionCode"`
	Open                     bool      `json:"open"`
	Special                  bool      `json:"special"`
	PlayerDataSyncedAt       time.Time `json:"playerDataSyncedAt"`
	PlayerSnapshotsCreatedAt time.Time `json:"playerSnapshotsCreatedAt"`
	TribeDataSyncedAt        time.Time `json:"tribeDataSyncedAt"`
	TribeSnapshotsCreatedAt  time.Time `json:"tribeSnapshotsCreatedAt"`
	VillageDataSyncedAt      time.Time `json:"villageDataSyncedAt"`
	EnnoblementDataSyncedAt  time.Time `json:"ennoblementDataSyncedAt"`
}

type CreateSnapshotsCmdPayload

type CreateSnapshotsCmdPayload struct {
	ServerKey       string    `json:"serverKey"`
	VersionCode     string    `json:"versionCode"`
	VersionTimezone string    `json:"versionTimezone"`
	Date            time.Time `json:"date"`
}

type EnnoblementsSyncedEventPayload

type EnnoblementsSyncedEventPayload struct {
	ServerKey   string   `json:"serverKey"`
	ServerURL   *url.URL `json:"serverUrl"`
	VersionCode string   `json:"versionCode"`
}

type JSONMarshaler

type JSONMarshaler struct {
	NewUUID func() string
}

func (JSONMarshaler) Marshal

func (m JSONMarshaler) Marshal(ctx context.Context, v any) (*message.Message, error)

func (JSONMarshaler) Unmarshal

func (m JSONMarshaler) Unmarshal(msg *message.Message, v any) error

type Marshaler

type Marshaler interface {
	Marshal(ctx context.Context, v any) (*message.Message, error)
	Unmarshal(msg *message.Message, v any) error
}

type PlayersSyncedEventPayload

type PlayersSyncedEventPayload struct {
	ServerKey   string   `json:"serverKey"`
	ServerURL   *url.URL `json:"serverUrl"`
	VersionCode string   `json:"versionCode"`
	NumPlayers  int      `json:"numPlayers"`
}

type ServerSyncedEventPayload

type ServerSyncedEventPayload struct {
	Key         string   `json:"key"`
	URL         *url.URL `json:"url"`
	VersionCode string   `json:"versionCode"`
}

type SnapshotsCreatedEventPayload

type SnapshotsCreatedEventPayload struct {
	ServerKey   string `json:"serverKey"`
	VersionCode string `json:"versionCode"`
}

type SyncEnnoblementsCmdPayload

type SyncEnnoblementsCmdPayload struct {
	ServerKey   string   `json:"serverKey"`
	ServerURL   *url.URL `json:"serverUrl"`
	VersionCode string   `json:"versionCode"`
}

type SyncServersCmdPayload

type SyncServersCmdPayload struct {
	VersionCode string   `json:"versionCode"`
	URL         *url.URL `json:"url"`
}

type TribesSyncedEventPayload

type TribesSyncedEventPayload struct {
	ServerKey   string   `json:"serverKey"`
	ServerURL   *url.URL `json:"serverUrl"`
	VersionCode string   `json:"versionCode"`
	NumTribes   int      `json:"numTribes"`
}

type VillagesSyncedEventPayload

type VillagesSyncedEventPayload struct {
	ServerKey            string   `json:"serverKey"`
	ServerURL            *url.URL `json:"serverUrl"`
	VersionCode          string   `json:"versionCode"`
	NumVillages          int      `json:"numVillages"`
	NumPlayerVillages    int      `json:"numPlayerVillages"`
	NumBarbarianVillages int      `json:"numBarbarianVillages"`
	NumBonusVillages     int      `json:"numBonusVillages"`
}

Jump to

Keyboard shortcuts

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