persist

package
v0.1.111 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Writers_name = map[int32]string{
		0: "WRITERS_UNKNOWN",
		1: "WRITERS_SERVERS",
		2: "WRITERS_PLAYERS",
	}
	Writers_value = map[string]int32{
		"WRITERS_UNKNOWN": 0,
		"WRITERS_SERVERS": 1,
		"WRITERS_PLAYERS": 2,
	}
)

Enum value maps for Writers.

View Source
var (
	Field_Kind_name = map[int32]string{
		0: "KIND_UNKNOWN",
		1: "KIND_COUNT",
		2: "KIND_NUMBER",
		3: "KIND_MAX",
		4: "KIND_STRING",
		5: "KIND_TAGS",
	}
	Field_Kind_value = map[string]int32{
		"KIND_UNKNOWN": 0,
		"KIND_COUNT":   1,
		"KIND_NUMBER":  2,
		"KIND_MAX":     3,
		"KIND_STRING":  4,
		"KIND_TAGS":    5,
	}
)

Enum value maps for Field_Kind.

Functions

This section is empty.

Types

type Field

type Field struct {
	Kind Field_Kind `protobuf:"varint,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// MaxBytes bounds a KIND_STRING field's text, up to 256; zero is 64.
	MaxBytes uint32 `protobuf:"varint,2,opt,name=max_bytes,json=maxBytes,proto3" json:"maxBytes,omitempty"`
	// contains filtered or unexported fields
}

Field is one declared field of a record type.

func (*Field) CloneMessageVT

func (m *Field) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Field) CloneVT

func (m *Field) CloneVT() *Field

func (*Field) EqualMessageVT

func (this *Field) EqualMessageVT(thatMsg any) bool

func (*Field) EqualVT

func (this *Field) EqualVT(that *Field) bool

func (*Field) GetKind

func (x *Field) GetKind() Field_Kind

func (*Field) GetMaxBytes

func (x *Field) GetMaxBytes() uint32

func (*Field) MarshalJSON

func (x *Field) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Field to JSON.

func (*Field) MarshalProtoJSON

func (x *Field) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Field message to JSON.

func (*Field) MarshalProtoText

func (x *Field) MarshalProtoText() string

func (*Field) MarshalToSizedBufferVT

func (m *Field) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Field) MarshalToVT

func (m *Field) MarshalToVT(dAtA []byte) (int, error)

func (*Field) MarshalVT

func (m *Field) MarshalVT() (dAtA []byte, err error)

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) Reset

func (x *Field) Reset()

func (*Field) SizeVT

func (m *Field) SizeVT() (n int)

func (*Field) String

func (x *Field) String() string

func (*Field) UnmarshalJSON

func (x *Field) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Field from JSON.

func (*Field) UnmarshalProtoJSON

func (x *Field) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Field message from JSON.

func (*Field) UnmarshalVT

func (m *Field) UnmarshalVT(dAtA []byte) error

type Field_Kind

type Field_Kind int32

Kind is what the field holds and which operations change it.

const (
	// KIND_UNKNOWN is an unset or unsupported kind.
	Field_KIND_UNKNOWN Field_Kind = 0
	// KIND_COUNT is a whole number from zero up, changed by add and set.
	Field_KIND_COUNT Field_Kind = 1
	// KIND_NUMBER is any number, changed by add, max, min and set.
	Field_KIND_NUMBER Field_Kind = 2
	// KIND_MAX is a number that keeps the highest value it was given,
	// changed by max.
	Field_KIND_MAX Field_Kind = 3
	// KIND_STRING is text of up to max_bytes bytes, changed by set.
	Field_KIND_STRING Field_Kind = 4
	// KIND_TAGS is a set of up to 256 short strings, such as unlocks or
	// completed goals, changed by insert and remove.
	Field_KIND_TAGS Field_Kind = 5
)

func (Field_Kind) Enum

func (x Field_Kind) Enum() *Field_Kind

func (Field_Kind) MarshalJSON

func (x Field_Kind) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Field_Kind to JSON.

func (Field_Kind) MarshalProtoJSON

func (x Field_Kind) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Field_Kind to JSON.

func (Field_Kind) MarshalProtoText

func (x Field_Kind) MarshalProtoText() string

func (Field_Kind) MarshalText

func (x Field_Kind) MarshalText() ([]byte, error)

MarshalText marshals the Field_Kind to text.

func (Field_Kind) String

func (x Field_Kind) String() string

func (*Field_Kind) UnmarshalJSON

func (x *Field_Kind) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Field_Kind from JSON.

func (*Field_Kind) UnmarshalProtoJSON

func (x *Field_Kind) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Field_Kind from JSON.

func (*Field_Kind) UnmarshalText

func (x *Field_Kind) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Field_Kind from text.

type GetManyReply

type GetManyReply struct {

	// Records holds one entry for each asked player, in the asked order.
	Records []*PlayerRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

GetManyReply is the response of the GetMany method.

func (*GetManyReply) CloneMessageVT

func (m *GetManyReply) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*GetManyReply) CloneVT

func (m *GetManyReply) CloneVT() *GetManyReply

func (*GetManyReply) EqualMessageVT

func (this *GetManyReply) EqualMessageVT(thatMsg any) bool

func (*GetManyReply) EqualVT

func (this *GetManyReply) EqualVT(that *GetManyReply) bool

func (*GetManyReply) GetRecords

func (x *GetManyReply) GetRecords() []*PlayerRecord

func (*GetManyReply) MarshalJSON

func (x *GetManyReply) MarshalJSON() ([]byte, error)

MarshalJSON marshals the GetManyReply to JSON.

func (*GetManyReply) MarshalProtoJSON

func (x *GetManyReply) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the GetManyReply message to JSON.

func (*GetManyReply) MarshalProtoText

func (x *GetManyReply) MarshalProtoText() string

func (*GetManyReply) MarshalToSizedBufferVT

func (m *GetManyReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GetManyReply) MarshalToVT

func (m *GetManyReply) MarshalToVT(dAtA []byte) (int, error)

func (*GetManyReply) MarshalVT

func (m *GetManyReply) MarshalVT() (dAtA []byte, err error)

func (*GetManyReply) ProtoMessage

func (*GetManyReply) ProtoMessage()

func (*GetManyReply) Reset

func (x *GetManyReply) Reset()

func (*GetManyReply) SizeVT

func (m *GetManyReply) SizeVT() (n int)

func (*GetManyReply) String

func (x *GetManyReply) String() string

func (*GetManyReply) UnmarshalJSON

func (x *GetManyReply) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the GetManyReply from JSON.

func (*GetManyReply) UnmarshalProtoJSON

func (x *GetManyReply) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the GetManyReply message from JSON.

func (*GetManyReply) UnmarshalVT

func (m *GetManyReply) UnmarshalVT(dAtA []byte) error

type GetManyRequest

type GetManyRequest struct {

	// Players are the players' server slots, up to 16.
	Players []int32 `protobuf:"varint,1,rep,packed,name=players,proto3" json:"players,omitempty"`
	// Type names a record type the manifest declares.
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// Generations holds the connection generation of each of players, in the
	// same order, as GetRequest's generation does for one player.
	Generations []uint32 `protobuf:"varint,16,rep,packed,name=generations,proto3" json:"generations,omitempty"`
	// contains filtered or unexported fields
}

GetManyRequest reads the records of several players, such as a lobby at join, the request of the GetMany method.

func (*GetManyRequest) CloneMessageVT

func (m *GetManyRequest) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*GetManyRequest) CloneVT

func (m *GetManyRequest) CloneVT() *GetManyRequest

func (*GetManyRequest) EqualMessageVT

func (this *GetManyRequest) EqualMessageVT(thatMsg any) bool

func (*GetManyRequest) EqualVT

func (this *GetManyRequest) EqualVT(that *GetManyRequest) bool

func (*GetManyRequest) GetGenerations

func (x *GetManyRequest) GetGenerations() []uint32

func (*GetManyRequest) GetPlayers

func (x *GetManyRequest) GetPlayers() []int32

func (*GetManyRequest) GetType

func (x *GetManyRequest) GetType() string

func (*GetManyRequest) MarshalJSON

func (x *GetManyRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals the GetManyRequest to JSON.

func (*GetManyRequest) MarshalProtoJSON

func (x *GetManyRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the GetManyRequest message to JSON.

func (*GetManyRequest) MarshalProtoText

func (x *GetManyRequest) MarshalProtoText() string

func (*GetManyRequest) MarshalToSizedBufferVT

func (m *GetManyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GetManyRequest) MarshalToVT

func (m *GetManyRequest) MarshalToVT(dAtA []byte) (int, error)

func (*GetManyRequest) MarshalVT

func (m *GetManyRequest) MarshalVT() (dAtA []byte, err error)

func (*GetManyRequest) ProtoMessage

func (*GetManyRequest) ProtoMessage()

func (*GetManyRequest) Reset

func (x *GetManyRequest) Reset()

func (*GetManyRequest) SizeVT

func (m *GetManyRequest) SizeVT() (n int)

func (*GetManyRequest) String

func (x *GetManyRequest) String() string

func (*GetManyRequest) UnmarshalJSON

func (x *GetManyRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the GetManyRequest from JSON.

func (*GetManyRequest) UnmarshalProtoJSON

func (x *GetManyRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the GetManyRequest message from JSON.

func (*GetManyRequest) UnmarshalVT

func (m *GetManyRequest) UnmarshalVT(dAtA []byte) error

type GetReply

type GetReply struct {

	// Record is the player's record; a record never written comes back empty.
	Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	// contains filtered or unexported fields
}

GetReply is the response of the Get method.

func (*GetReply) CloneMessageVT

func (m *GetReply) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*GetReply) CloneVT

func (m *GetReply) CloneVT() *GetReply

func (*GetReply) EqualMessageVT

func (this *GetReply) EqualMessageVT(thatMsg any) bool

func (*GetReply) EqualVT

func (this *GetReply) EqualVT(that *GetReply) bool

func (*GetReply) GetRecord

func (x *GetReply) GetRecord() *Record

func (*GetReply) MarshalJSON

func (x *GetReply) MarshalJSON() ([]byte, error)

MarshalJSON marshals the GetReply to JSON.

func (*GetReply) MarshalProtoJSON

func (x *GetReply) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the GetReply message to JSON.

func (*GetReply) MarshalProtoText

func (x *GetReply) MarshalProtoText() string

func (*GetReply) MarshalToSizedBufferVT

func (m *GetReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GetReply) MarshalToVT

func (m *GetReply) MarshalToVT(dAtA []byte) (int, error)

func (*GetReply) MarshalVT

func (m *GetReply) MarshalVT() (dAtA []byte, err error)

func (*GetReply) ProtoMessage

func (*GetReply) ProtoMessage()

func (*GetReply) Reset

func (x *GetReply) Reset()

func (*GetReply) SizeVT

func (m *GetReply) SizeVT() (n int)

func (*GetReply) String

func (x *GetReply) String() string

func (*GetReply) UnmarshalJSON

func (x *GetReply) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the GetReply from JSON.

func (*GetReply) UnmarshalProtoJSON

func (x *GetReply) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the GetReply message from JSON.

func (*GetReply) UnmarshalVT

func (m *GetReply) UnmarshalVT(dAtA []byte) error

type GetRequest

type GetRequest struct {

	// Player is the player's server slot.
	Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	// Type names a record type the manifest declares.
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// Key selects one of the player's records of the type. Empty is the one
	// record each player has; hosts refuse any other key for now.
	Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	// Generation is the connection generation of the Player the request was
	// made for, as Connection.generation carries it. The host refuses the
	// request unless the slot's connection still has that generation, so a
	// Player kept after its player left never reads or changes the record of
	// the next player in the slot. Zero is never a connection's generation.
	Generation uint32 `protobuf:"varint,16,opt,name=generation,proto3" json:"generation,omitempty"`
	// contains filtered or unexported fields
}

GetRequest reads one player's record, the request of the persist service's Get method.

func (*GetRequest) CloneMessageVT

func (m *GetRequest) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*GetRequest) CloneVT

func (m *GetRequest) CloneVT() *GetRequest

func (*GetRequest) EqualMessageVT

func (this *GetRequest) EqualMessageVT(thatMsg any) bool

func (*GetRequest) EqualVT

func (this *GetRequest) EqualVT(that *GetRequest) bool

func (*GetRequest) GetGeneration

func (x *GetRequest) GetGeneration() uint32

func (*GetRequest) GetKey

func (x *GetRequest) GetKey() string

func (*GetRequest) GetPlayer

func (x *GetRequest) GetPlayer() int32

func (*GetRequest) GetType

func (x *GetRequest) GetType() string

func (*GetRequest) MarshalJSON

func (x *GetRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals the GetRequest to JSON.

func (*GetRequest) MarshalProtoJSON

func (x *GetRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the GetRequest message to JSON.

func (*GetRequest) MarshalProtoText

func (x *GetRequest) MarshalProtoText() string

func (*GetRequest) MarshalToSizedBufferVT

func (m *GetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GetRequest) MarshalToVT

func (m *GetRequest) MarshalToVT(dAtA []byte) (int, error)

func (*GetRequest) MarshalVT

func (m *GetRequest) MarshalVT() (dAtA []byte, err error)

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) SizeVT

func (m *GetRequest) SizeVT() (n int)

func (*GetRequest) String

func (x *GetRequest) String() string

func (*GetRequest) UnmarshalJSON

func (x *GetRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the GetRequest from JSON.

func (*GetRequest) UnmarshalProtoJSON

func (x *GetRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the GetRequest message from JSON.

func (*GetRequest) UnmarshalVT

func (m *GetRequest) UnmarshalVT(dAtA []byte) error

type Op

type Op struct {

	// Field names a field the record type declares.
	Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	// Types that are assignable to Op:
	//	*Op_Add
	//	*Op_Max
	//	*Op_Min
	//	*Op_Set
	//	*Op_Insert
	//	*Op_Remove
	Op isOp_Op `protobuf_oneof:"op"`
	// contains filtered or unexported fields
}

Op is one change to one field of a record.

func (*Op) CloneMessageVT

func (m *Op) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Op) CloneVT

func (m *Op) CloneVT() *Op

func (*Op) EqualMessageVT

func (this *Op) EqualMessageVT(thatMsg any) bool

func (*Op) EqualVT

func (this *Op) EqualVT(that *Op) bool

func (*Op) GetAdd

func (x *Op) GetAdd() float64

func (*Op) GetField

func (x *Op) GetField() string

func (*Op) GetInsert

func (x *Op) GetInsert() string

func (*Op) GetMax

func (x *Op) GetMax() float64

func (*Op) GetMin

func (x *Op) GetMin() float64

func (*Op) GetOp

func (m *Op) GetOp() isOp_Op

func (*Op) GetRemove

func (x *Op) GetRemove() string

func (*Op) GetSet

func (x *Op) GetSet() *Value

func (*Op) MarshalJSON

func (x *Op) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Op to JSON.

func (*Op) MarshalProtoJSON

func (x *Op) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Op message to JSON.

func (*Op) MarshalProtoText

func (x *Op) MarshalProtoText() string

func (*Op) MarshalToSizedBufferVT

func (m *Op) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Op) MarshalToVT

func (m *Op) MarshalToVT(dAtA []byte) (int, error)

func (*Op) MarshalVT

func (m *Op) MarshalVT() (dAtA []byte, err error)

func (*Op) ProtoMessage

func (*Op) ProtoMessage()

func (*Op) Reset

func (x *Op) Reset()

func (*Op) SizeVT

func (m *Op) SizeVT() (n int)

func (*Op) String

func (x *Op) String() string

func (*Op) UnmarshalJSON

func (x *Op) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Op from JSON.

func (*Op) UnmarshalProtoJSON

func (x *Op) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Op message from JSON.

func (*Op) UnmarshalVT

func (m *Op) UnmarshalVT(dAtA []byte) error

type Op_Add

type Op_Add struct {
	// Add adds to a KIND_COUNT or KIND_NUMBER field; a count takes only a
	// whole number from zero up.
	Add float64 `protobuf:"fixed64,2,opt,name=add,proto3,oneof"`
}

func (*Op_Add) CloneOneofVT

func (m *Op_Add) CloneOneofVT() isOp_Op

func (*Op_Add) CloneVT

func (m *Op_Add) CloneVT() *Op_Add

func (*Op_Add) EqualVT

func (this *Op_Add) EqualVT(thatIface isOp_Op) bool

func (*Op_Add) MarshalToSizedBufferVT

func (m *Op_Add) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Op_Add) MarshalToVT

func (m *Op_Add) MarshalToVT(dAtA []byte) (int, error)

func (*Op_Add) SizeVT

func (m *Op_Add) SizeVT() (n int)

type Op_Insert

type Op_Insert struct {
	// Insert adds a member to a KIND_TAGS field.
	Insert string `protobuf:"bytes,6,opt,name=insert,proto3,oneof"`
}

func (*Op_Insert) CloneOneofVT

func (m *Op_Insert) CloneOneofVT() isOp_Op

func (*Op_Insert) CloneVT

func (m *Op_Insert) CloneVT() *Op_Insert

func (*Op_Insert) EqualVT

func (this *Op_Insert) EqualVT(thatIface isOp_Op) bool

func (*Op_Insert) MarshalToSizedBufferVT

func (m *Op_Insert) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Op_Insert) MarshalToVT

func (m *Op_Insert) MarshalToVT(dAtA []byte) (int, error)

func (*Op_Insert) SizeVT

func (m *Op_Insert) SizeVT() (n int)

type Op_Max

type Op_Max struct {
	// Max raises a KIND_NUMBER or KIND_MAX field to this value when it is
	// higher.
	Max float64 `protobuf:"fixed64,3,opt,name=max,proto3,oneof"`
}

func (*Op_Max) CloneOneofVT

func (m *Op_Max) CloneOneofVT() isOp_Op

func (*Op_Max) CloneVT

func (m *Op_Max) CloneVT() *Op_Max

func (*Op_Max) EqualVT

func (this *Op_Max) EqualVT(thatIface isOp_Op) bool

func (*Op_Max) MarshalToSizedBufferVT

func (m *Op_Max) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Op_Max) MarshalToVT

func (m *Op_Max) MarshalToVT(dAtA []byte) (int, error)

func (*Op_Max) SizeVT

func (m *Op_Max) SizeVT() (n int)

type Op_Min

type Op_Min struct {
	// Min lowers a KIND_NUMBER field to this value when it is lower.
	Min float64 `protobuf:"fixed64,4,opt,name=min,proto3,oneof"`
}

func (*Op_Min) CloneOneofVT

func (m *Op_Min) CloneOneofVT() isOp_Op

func (*Op_Min) CloneVT

func (m *Op_Min) CloneVT() *Op_Min

func (*Op_Min) EqualVT

func (this *Op_Min) EqualVT(thatIface isOp_Op) bool

func (*Op_Min) MarshalToSizedBufferVT

func (m *Op_Min) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Op_Min) MarshalToVT

func (m *Op_Min) MarshalToVT(dAtA []byte) (int, error)

func (*Op_Min) SizeVT

func (m *Op_Min) SizeVT() (n int)

type Op_Remove

type Op_Remove struct {
	// Remove takes a member from a KIND_TAGS field.
	Remove string `protobuf:"bytes,7,opt,name=remove,proto3,oneof"`
}

func (*Op_Remove) CloneOneofVT

func (m *Op_Remove) CloneOneofVT() isOp_Op

func (*Op_Remove) CloneVT

func (m *Op_Remove) CloneVT() *Op_Remove

func (*Op_Remove) EqualVT

func (this *Op_Remove) EqualVT(thatIface isOp_Op) bool

func (*Op_Remove) MarshalToSizedBufferVT

func (m *Op_Remove) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Op_Remove) MarshalToVT

func (m *Op_Remove) MarshalToVT(dAtA []byte) (int, error)

func (*Op_Remove) SizeVT

func (m *Op_Remove) SizeVT() (n int)

type Op_Set

type Op_Set struct {
	// Set replaces a KIND_COUNT, KIND_NUMBER or KIND_STRING field's value.
	Set *Value `protobuf:"bytes,5,opt,name=set,proto3,oneof"`
}

func (*Op_Set) CloneOneofVT

func (m *Op_Set) CloneOneofVT() isOp_Op

func (*Op_Set) CloneVT

func (m *Op_Set) CloneVT() *Op_Set

func (*Op_Set) EqualVT

func (this *Op_Set) EqualVT(thatIface isOp_Op) bool

func (*Op_Set) MarshalToSizedBufferVT

func (m *Op_Set) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Op_Set) MarshalToVT

func (m *Op_Set) MarshalToVT(dAtA []byte) (int, error)

func (*Op_Set) SizeVT

func (m *Op_Set) SizeVT() (n int)

type PlayerFile

type PlayerFile struct {

	// SteamId is the player's SteamID64.
	SteamId uint64                   `protobuf:"varint,1,opt,name=steam_id,json=steamId,proto3" json:"steamId,omitempty"`
	Records map[string]*StoredRecord `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

PlayerFile is the file a local host keeps for one player of one mod: the player's record of each type, by type name.

func (*PlayerFile) CloneMessageVT

func (m *PlayerFile) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*PlayerFile) CloneVT

func (m *PlayerFile) CloneVT() *PlayerFile

func (*PlayerFile) EqualMessageVT

func (this *PlayerFile) EqualMessageVT(thatMsg any) bool

func (*PlayerFile) EqualVT

func (this *PlayerFile) EqualVT(that *PlayerFile) bool

func (*PlayerFile) GetRecords

func (x *PlayerFile) GetRecords() map[string]*StoredRecord

func (*PlayerFile) GetSteamId

func (x *PlayerFile) GetSteamId() uint64

func (*PlayerFile) MarshalJSON

func (x *PlayerFile) MarshalJSON() ([]byte, error)

MarshalJSON marshals the PlayerFile to JSON.

func (*PlayerFile) MarshalProtoJSON

func (x *PlayerFile) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the PlayerFile message to JSON.

func (*PlayerFile) MarshalProtoText

func (x *PlayerFile) MarshalProtoText() string

func (*PlayerFile) MarshalToSizedBufferVT

func (m *PlayerFile) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PlayerFile) MarshalToVT

func (m *PlayerFile) MarshalToVT(dAtA []byte) (int, error)

func (*PlayerFile) MarshalVT

func (m *PlayerFile) MarshalVT() (dAtA []byte, err error)

func (*PlayerFile) ProtoMessage

func (*PlayerFile) ProtoMessage()

func (*PlayerFile) Reset

func (x *PlayerFile) Reset()

func (*PlayerFile) SizeVT

func (m *PlayerFile) SizeVT() (n int)

func (*PlayerFile) String

func (x *PlayerFile) String() string

func (*PlayerFile) UnmarshalJSON

func (x *PlayerFile) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the PlayerFile from JSON.

func (*PlayerFile) UnmarshalProtoJSON

func (x *PlayerFile) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the PlayerFile message from JSON.

func (*PlayerFile) UnmarshalVT

func (m *PlayerFile) UnmarshalVT(dAtA []byte) error

type PlayerFile_RecordsEntry

type PlayerFile_RecordsEntry struct {
	Key   string        `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *StoredRecord `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*PlayerFile_RecordsEntry) GetKey

func (x *PlayerFile_RecordsEntry) GetKey() string

func (*PlayerFile_RecordsEntry) GetValue

func (x *PlayerFile_RecordsEntry) GetValue() *StoredRecord

func (*PlayerFile_RecordsEntry) MarshalJSON

func (x *PlayerFile_RecordsEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the PlayerFile_RecordsEntry to JSON.

func (*PlayerFile_RecordsEntry) MarshalProtoJSON

func (x *PlayerFile_RecordsEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the PlayerFile_RecordsEntry message to JSON.

func (*PlayerFile_RecordsEntry) MarshalProtoText

func (x *PlayerFile_RecordsEntry) MarshalProtoText() string

func (*PlayerFile_RecordsEntry) ProtoMessage

func (*PlayerFile_RecordsEntry) ProtoMessage()

func (*PlayerFile_RecordsEntry) Reset

func (x *PlayerFile_RecordsEntry) Reset()

func (*PlayerFile_RecordsEntry) String

func (x *PlayerFile_RecordsEntry) String() string

func (*PlayerFile_RecordsEntry) UnmarshalJSON

func (x *PlayerFile_RecordsEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the PlayerFile_RecordsEntry from JSON.

func (*PlayerFile_RecordsEntry) UnmarshalProtoJSON

func (x *PlayerFile_RecordsEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the PlayerFile_RecordsEntry message from JSON.

type PlayerRecord

type PlayerRecord struct {

	// Player is the player's server slot.
	Player int32   `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	Record *Record `protobuf:"bytes,2,opt,name=record,proto3" json:"record,omitempty"`
	// contains filtered or unexported fields
}

PlayerRecord is one player's record in a GetManyReply.

func (*PlayerRecord) CloneMessageVT

func (m *PlayerRecord) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*PlayerRecord) CloneVT

func (m *PlayerRecord) CloneVT() *PlayerRecord

func (*PlayerRecord) EqualMessageVT

func (this *PlayerRecord) EqualMessageVT(thatMsg any) bool

func (*PlayerRecord) EqualVT

func (this *PlayerRecord) EqualVT(that *PlayerRecord) bool

func (*PlayerRecord) GetPlayer

func (x *PlayerRecord) GetPlayer() int32

func (*PlayerRecord) GetRecord

func (x *PlayerRecord) GetRecord() *Record

func (*PlayerRecord) MarshalJSON

func (x *PlayerRecord) MarshalJSON() ([]byte, error)

MarshalJSON marshals the PlayerRecord to JSON.

func (*PlayerRecord) MarshalProtoJSON

func (x *PlayerRecord) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the PlayerRecord message to JSON.

func (*PlayerRecord) MarshalProtoText

func (x *PlayerRecord) MarshalProtoText() string

func (*PlayerRecord) MarshalToSizedBufferVT

func (m *PlayerRecord) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PlayerRecord) MarshalToVT

func (m *PlayerRecord) MarshalToVT(dAtA []byte) (int, error)

func (*PlayerRecord) MarshalVT

func (m *PlayerRecord) MarshalVT() (dAtA []byte, err error)

func (*PlayerRecord) ProtoMessage

func (*PlayerRecord) ProtoMessage()

func (*PlayerRecord) Reset

func (x *PlayerRecord) Reset()

func (*PlayerRecord) SizeVT

func (m *PlayerRecord) SizeVT() (n int)

func (*PlayerRecord) String

func (x *PlayerRecord) String() string

func (*PlayerRecord) UnmarshalJSON

func (x *PlayerRecord) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the PlayerRecord from JSON.

func (*PlayerRecord) UnmarshalProtoJSON

func (x *PlayerRecord) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the PlayerRecord message from JSON.

func (*PlayerRecord) UnmarshalVT

func (m *PlayerRecord) UnmarshalVT(dAtA []byte) error

type Record

type Record struct {
	Fields map[string]*Value `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

Record is one player's values of one record type. A field never changed is absent and reads as zero, empty text or no tags.

func (*Record) CloneMessageVT

func (m *Record) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Record) CloneVT

func (m *Record) CloneVT() *Record

func (*Record) EqualMessageVT

func (this *Record) EqualMessageVT(thatMsg any) bool

func (*Record) EqualVT

func (this *Record) EqualVT(that *Record) bool

func (*Record) GetFields

func (x *Record) GetFields() map[string]*Value

func (*Record) MarshalJSON

func (x *Record) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Record to JSON.

func (*Record) MarshalProtoJSON

func (x *Record) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Record message to JSON.

func (*Record) MarshalProtoText

func (x *Record) MarshalProtoText() string

func (*Record) MarshalToSizedBufferVT

func (m *Record) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Record) MarshalToVT

func (m *Record) MarshalToVT(dAtA []byte) (int, error)

func (*Record) MarshalVT

func (m *Record) MarshalVT() (dAtA []byte, err error)

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) Reset

func (x *Record) Reset()

func (*Record) SizeVT

func (m *Record) SizeVT() (n int)

func (*Record) String

func (x *Record) String() string

func (*Record) UnmarshalJSON

func (x *Record) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Record from JSON.

func (*Record) UnmarshalProtoJSON

func (x *Record) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Record message from JSON.

func (*Record) UnmarshalVT

func (m *Record) UnmarshalVT(dAtA []byte) error

type RecordType

type RecordType struct {

	// Name names the type in the mod's code: up to 32 letters, digits and
	// underscores, starting with a letter.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Writers is who may change the type's records.
	Writers Writers `protobuf:"varint,2,opt,name=writers,proto3" json:"writers,omitempty"`
	// Fields are the record's fields by name: up to 32, each up to 32
	// letters, digits and underscores, starting with a letter.
	Fields map[string]*Field `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

RecordType is one kind of record a mod declares in its manifest under persist, such as a player's stats or unlocks. A host that serves the persist service keeps one record of each type for each player of the mod.

func (*RecordType) CloneMessageVT

func (m *RecordType) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*RecordType) CloneVT

func (m *RecordType) CloneVT() *RecordType

func (*RecordType) EqualMessageVT

func (this *RecordType) EqualMessageVT(thatMsg any) bool

func (*RecordType) EqualVT

func (this *RecordType) EqualVT(that *RecordType) bool

func (*RecordType) GetFields

func (x *RecordType) GetFields() map[string]*Field

func (*RecordType) GetName

func (x *RecordType) GetName() string

func (*RecordType) GetWriters

func (x *RecordType) GetWriters() Writers

func (*RecordType) MarshalJSON

func (x *RecordType) MarshalJSON() ([]byte, error)

MarshalJSON marshals the RecordType to JSON.

func (*RecordType) MarshalProtoJSON

func (x *RecordType) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the RecordType message to JSON.

func (*RecordType) MarshalProtoText

func (x *RecordType) MarshalProtoText() string

func (*RecordType) MarshalToSizedBufferVT

func (m *RecordType) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*RecordType) MarshalToVT

func (m *RecordType) MarshalToVT(dAtA []byte) (int, error)

func (*RecordType) MarshalVT

func (m *RecordType) MarshalVT() (dAtA []byte, err error)

func (*RecordType) ProtoMessage

func (*RecordType) ProtoMessage()

func (*RecordType) Reset

func (x *RecordType) Reset()

func (*RecordType) SizeVT

func (m *RecordType) SizeVT() (n int)

func (*RecordType) String

func (x *RecordType) String() string

func (*RecordType) UnmarshalJSON

func (x *RecordType) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the RecordType from JSON.

func (*RecordType) UnmarshalProtoJSON

func (x *RecordType) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the RecordType message from JSON.

func (*RecordType) UnmarshalVT

func (m *RecordType) UnmarshalVT(dAtA []byte) error

type RecordType_FieldsEntry

type RecordType_FieldsEntry struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *Field `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordType_FieldsEntry) GetKey

func (x *RecordType_FieldsEntry) GetKey() string

func (*RecordType_FieldsEntry) GetValue

func (x *RecordType_FieldsEntry) GetValue() *Field

func (*RecordType_FieldsEntry) MarshalJSON

func (x *RecordType_FieldsEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the RecordType_FieldsEntry to JSON.

func (*RecordType_FieldsEntry) MarshalProtoJSON

func (x *RecordType_FieldsEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the RecordType_FieldsEntry message to JSON.

func (*RecordType_FieldsEntry) MarshalProtoText

func (x *RecordType_FieldsEntry) MarshalProtoText() string

func (*RecordType_FieldsEntry) ProtoMessage

func (*RecordType_FieldsEntry) ProtoMessage()

func (*RecordType_FieldsEntry) Reset

func (x *RecordType_FieldsEntry) Reset()

func (*RecordType_FieldsEntry) String

func (x *RecordType_FieldsEntry) String() string

func (*RecordType_FieldsEntry) UnmarshalJSON

func (x *RecordType_FieldsEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the RecordType_FieldsEntry from JSON.

func (*RecordType_FieldsEntry) UnmarshalProtoJSON

func (x *RecordType_FieldsEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the RecordType_FieldsEntry message from JSON.

type Record_FieldsEntry

type Record_FieldsEntry struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Record_FieldsEntry) GetKey

func (x *Record_FieldsEntry) GetKey() string

func (*Record_FieldsEntry) GetValue

func (x *Record_FieldsEntry) GetValue() *Value

func (*Record_FieldsEntry) MarshalJSON

func (x *Record_FieldsEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Record_FieldsEntry to JSON.

func (*Record_FieldsEntry) MarshalProtoJSON

func (x *Record_FieldsEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Record_FieldsEntry message to JSON.

func (*Record_FieldsEntry) MarshalProtoText

func (x *Record_FieldsEntry) MarshalProtoText() string

func (*Record_FieldsEntry) ProtoMessage

func (*Record_FieldsEntry) ProtoMessage()

func (*Record_FieldsEntry) Reset

func (x *Record_FieldsEntry) Reset()

func (*Record_FieldsEntry) String

func (x *Record_FieldsEntry) String() string

func (*Record_FieldsEntry) UnmarshalJSON

func (x *Record_FieldsEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Record_FieldsEntry from JSON.

func (*Record_FieldsEntry) UnmarshalProtoJSON

func (x *Record_FieldsEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Record_FieldsEntry message from JSON.

type StoredRecord

type StoredRecord struct {
	Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	// RecentKeys are the update keys of the record's last 64 keyed updates,
	// oldest first.
	RecentKeys []string `protobuf:"bytes,2,rep,name=recent_keys,json=recentKeys,proto3" json:"recentKeys,omitempty"`
	// Version counts the updates that changed the record.
	Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	// Kinds are the kinds of the fields that wrote each value in record, so a
	// value is changed only by a field of the same kind.
	Kinds map[string]Field_Kind `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

StoredRecord is a record as a host keeps it: its values and the keys of its most recent updates.

func (*StoredRecord) CloneMessageVT

func (m *StoredRecord) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*StoredRecord) CloneVT

func (m *StoredRecord) CloneVT() *StoredRecord

func (*StoredRecord) EqualMessageVT

func (this *StoredRecord) EqualMessageVT(thatMsg any) bool

func (*StoredRecord) EqualVT

func (this *StoredRecord) EqualVT(that *StoredRecord) bool

func (*StoredRecord) GetKinds

func (x *StoredRecord) GetKinds() map[string]Field_Kind

func (*StoredRecord) GetRecentKeys

func (x *StoredRecord) GetRecentKeys() []string

func (*StoredRecord) GetRecord

func (x *StoredRecord) GetRecord() *Record

func (*StoredRecord) GetVersion

func (x *StoredRecord) GetVersion() uint64

func (*StoredRecord) MarshalJSON

func (x *StoredRecord) MarshalJSON() ([]byte, error)

MarshalJSON marshals the StoredRecord to JSON.

func (*StoredRecord) MarshalProtoJSON

func (x *StoredRecord) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the StoredRecord message to JSON.

func (*StoredRecord) MarshalProtoText

func (x *StoredRecord) MarshalProtoText() string

func (*StoredRecord) MarshalToSizedBufferVT

func (m *StoredRecord) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*StoredRecord) MarshalToVT

func (m *StoredRecord) MarshalToVT(dAtA []byte) (int, error)

func (*StoredRecord) MarshalVT

func (m *StoredRecord) MarshalVT() (dAtA []byte, err error)

func (*StoredRecord) ProtoMessage

func (*StoredRecord) ProtoMessage()

func (*StoredRecord) Reset

func (x *StoredRecord) Reset()

func (*StoredRecord) SizeVT

func (m *StoredRecord) SizeVT() (n int)

func (*StoredRecord) String

func (x *StoredRecord) String() string

func (*StoredRecord) UnmarshalJSON

func (x *StoredRecord) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the StoredRecord from JSON.

func (*StoredRecord) UnmarshalProtoJSON

func (x *StoredRecord) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the StoredRecord message from JSON.

func (*StoredRecord) UnmarshalVT

func (m *StoredRecord) UnmarshalVT(dAtA []byte) error

type StoredRecord_KindsEntry

type StoredRecord_KindsEntry struct {
	Key   string     `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value Field_Kind `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*StoredRecord_KindsEntry) GetKey

func (x *StoredRecord_KindsEntry) GetKey() string

func (*StoredRecord_KindsEntry) GetValue

func (x *StoredRecord_KindsEntry) GetValue() Field_Kind

func (*StoredRecord_KindsEntry) MarshalJSON

func (x *StoredRecord_KindsEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the StoredRecord_KindsEntry to JSON.

func (*StoredRecord_KindsEntry) MarshalProtoJSON

func (x *StoredRecord_KindsEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the StoredRecord_KindsEntry message to JSON.

func (*StoredRecord_KindsEntry) MarshalProtoText

func (x *StoredRecord_KindsEntry) MarshalProtoText() string

func (*StoredRecord_KindsEntry) ProtoMessage

func (*StoredRecord_KindsEntry) ProtoMessage()

func (*StoredRecord_KindsEntry) Reset

func (x *StoredRecord_KindsEntry) Reset()

func (*StoredRecord_KindsEntry) String

func (x *StoredRecord_KindsEntry) String() string

func (*StoredRecord_KindsEntry) UnmarshalJSON

func (x *StoredRecord_KindsEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the StoredRecord_KindsEntry from JSON.

func (*StoredRecord_KindsEntry) UnmarshalProtoJSON

func (x *StoredRecord_KindsEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the StoredRecord_KindsEntry message from JSON.

type Tags

type Tags struct {

	// Members are 1 to 32 bytes each.
	Members []string `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

Tags is the members of a KIND_TAGS field, in sorted order.

func (*Tags) CloneMessageVT

func (m *Tags) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Tags) CloneVT

func (m *Tags) CloneVT() *Tags

func (*Tags) EqualMessageVT

func (this *Tags) EqualMessageVT(thatMsg any) bool

func (*Tags) EqualVT

func (this *Tags) EqualVT(that *Tags) bool

func (*Tags) GetMembers

func (x *Tags) GetMembers() []string

func (*Tags) MarshalJSON

func (x *Tags) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Tags to JSON.

func (*Tags) MarshalProtoJSON

func (x *Tags) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Tags message to JSON.

func (*Tags) MarshalProtoText

func (x *Tags) MarshalProtoText() string

func (*Tags) MarshalToSizedBufferVT

func (m *Tags) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Tags) MarshalToVT

func (m *Tags) MarshalToVT(dAtA []byte) (int, error)

func (*Tags) MarshalVT

func (m *Tags) MarshalVT() (dAtA []byte, err error)

func (*Tags) ProtoMessage

func (*Tags) ProtoMessage()

func (*Tags) Reset

func (x *Tags) Reset()

func (*Tags) SizeVT

func (m *Tags) SizeVT() (n int)

func (*Tags) String

func (x *Tags) String() string

func (*Tags) UnmarshalJSON

func (x *Tags) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Tags from JSON.

func (*Tags) UnmarshalProtoJSON

func (x *Tags) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Tags message from JSON.

func (*Tags) UnmarshalVT

func (m *Tags) UnmarshalVT(dAtA []byte) error

type UpdateReply

type UpdateReply struct {

	// Record is the record after the update.
	Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	// Repeated is set when the update's key was among the record's recent
	// keys, so the host left the record as it was.
	Repeated bool `protobuf:"varint,2,opt,name=repeated,proto3" json:"repeated,omitempty"`
	// contains filtered or unexported fields
}

UpdateReply is the response of the Update method.

func (*UpdateReply) CloneMessageVT

func (m *UpdateReply) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*UpdateReply) CloneVT

func (m *UpdateReply) CloneVT() *UpdateReply

func (*UpdateReply) EqualMessageVT

func (this *UpdateReply) EqualMessageVT(thatMsg any) bool

func (*UpdateReply) EqualVT

func (this *UpdateReply) EqualVT(that *UpdateReply) bool

func (*UpdateReply) GetRecord

func (x *UpdateReply) GetRecord() *Record

func (*UpdateReply) GetRepeated

func (x *UpdateReply) GetRepeated() bool

func (*UpdateReply) MarshalJSON

func (x *UpdateReply) MarshalJSON() ([]byte, error)

MarshalJSON marshals the UpdateReply to JSON.

func (*UpdateReply) MarshalProtoJSON

func (x *UpdateReply) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the UpdateReply message to JSON.

func (*UpdateReply) MarshalProtoText

func (x *UpdateReply) MarshalProtoText() string

func (*UpdateReply) MarshalToSizedBufferVT

func (m *UpdateReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UpdateReply) MarshalToVT

func (m *UpdateReply) MarshalToVT(dAtA []byte) (int, error)

func (*UpdateReply) MarshalVT

func (m *UpdateReply) MarshalVT() (dAtA []byte, err error)

func (*UpdateReply) ProtoMessage

func (*UpdateReply) ProtoMessage()

func (*UpdateReply) Reset

func (x *UpdateReply) Reset()

func (*UpdateReply) SizeVT

func (m *UpdateReply) SizeVT() (n int)

func (*UpdateReply) String

func (x *UpdateReply) String() string

func (*UpdateReply) UnmarshalJSON

func (x *UpdateReply) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the UpdateReply from JSON.

func (*UpdateReply) UnmarshalProtoJSON

func (x *UpdateReply) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the UpdateReply message from JSON.

func (*UpdateReply) UnmarshalVT

func (m *UpdateReply) UnmarshalVT(dAtA []byte) error

type UpdateRequest

type UpdateRequest struct {

	// Player is the player's server slot.
	Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
	// Type names a record type the manifest declares.
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// Key selects the record, as in GetRequest.
	Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	// Ops are the changes, applied in order, up to 32.
	Ops []*Op `protobuf:"bytes,4,rep,name=ops,proto3" json:"ops,omitempty"`
	// UpdateKey identifies the change, such as a round, so a resent update
	// counts once: an update whose key is among the record's last 64 is
	// left out. Up to 64 bytes; empty applies the update every time.
	UpdateKey string `protobuf:"bytes,5,opt,name=update_key,json=updateKey,proto3" json:"updateKey,omitempty"`
	// Generation is the connection generation of the Player, as in GetRequest.
	Generation uint32 `protobuf:"varint,16,opt,name=generation,proto3" json:"generation,omitempty"`
	// contains filtered or unexported fields
}

UpdateRequest changes one player's record by field operations, the request of the Update method. The host applies every op or none, so two servers that update one record at once both land; a set is the one op whose later write wins.

func (*UpdateRequest) CloneMessageVT

func (m *UpdateRequest) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*UpdateRequest) CloneVT

func (m *UpdateRequest) CloneVT() *UpdateRequest

func (*UpdateRequest) EqualMessageVT

func (this *UpdateRequest) EqualMessageVT(thatMsg any) bool

func (*UpdateRequest) EqualVT

func (this *UpdateRequest) EqualVT(that *UpdateRequest) bool

func (*UpdateRequest) GetGeneration

func (x *UpdateRequest) GetGeneration() uint32

func (*UpdateRequest) GetKey

func (x *UpdateRequest) GetKey() string

func (*UpdateRequest) GetOps

func (x *UpdateRequest) GetOps() []*Op

func (*UpdateRequest) GetPlayer

func (x *UpdateRequest) GetPlayer() int32

func (*UpdateRequest) GetType

func (x *UpdateRequest) GetType() string

func (*UpdateRequest) GetUpdateKey

func (x *UpdateRequest) GetUpdateKey() string

func (*UpdateRequest) MarshalJSON

func (x *UpdateRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals the UpdateRequest to JSON.

func (*UpdateRequest) MarshalProtoJSON

func (x *UpdateRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the UpdateRequest message to JSON.

func (*UpdateRequest) MarshalProtoText

func (x *UpdateRequest) MarshalProtoText() string

func (*UpdateRequest) MarshalToSizedBufferVT

func (m *UpdateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UpdateRequest) MarshalToVT

func (m *UpdateRequest) MarshalToVT(dAtA []byte) (int, error)

func (*UpdateRequest) MarshalVT

func (m *UpdateRequest) MarshalVT() (dAtA []byte, err error)

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) SizeVT

func (m *UpdateRequest) SizeVT() (n int)

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

func (*UpdateRequest) UnmarshalJSON

func (x *UpdateRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the UpdateRequest from JSON.

func (*UpdateRequest) UnmarshalProtoJSON

func (x *UpdateRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the UpdateRequest message from JSON.

func (*UpdateRequest) UnmarshalVT

func (m *UpdateRequest) UnmarshalVT(dAtA []byte) error

type Value

type Value struct {

	// Types that are assignable to Value:
	//	*Value_Number
	//	*Value_Text
	//	*Value_Tags
	Value isValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

Value is one field's value in a record.

func (*Value) CloneMessageVT

func (m *Value) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Value) CloneVT

func (m *Value) CloneVT() *Value

func (*Value) EqualMessageVT

func (this *Value) EqualMessageVT(thatMsg any) bool

func (*Value) EqualVT

func (this *Value) EqualVT(that *Value) bool

func (*Value) GetNumber

func (x *Value) GetNumber() float64

func (*Value) GetTags

func (x *Value) GetTags() *Tags

func (*Value) GetText

func (x *Value) GetText() string

func (*Value) GetValue

func (m *Value) GetValue() isValue_Value

func (*Value) MarshalJSON

func (x *Value) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Value to JSON.

func (*Value) MarshalProtoJSON

func (x *Value) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Value message to JSON.

func (*Value) MarshalProtoText

func (x *Value) MarshalProtoText() string

func (*Value) MarshalToSizedBufferVT

func (m *Value) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value) MarshalToVT

func (m *Value) MarshalToVT(dAtA []byte) (int, error)

func (*Value) MarshalVT

func (m *Value) MarshalVT() (dAtA []byte, err error)

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) Reset

func (x *Value) Reset()

func (*Value) SizeVT

func (m *Value) SizeVT() (n int)

func (*Value) String

func (x *Value) String() string

func (*Value) UnmarshalJSON

func (x *Value) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Value from JSON.

func (*Value) UnmarshalProtoJSON

func (x *Value) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Value message from JSON.

func (*Value) UnmarshalVT

func (m *Value) UnmarshalVT(dAtA []byte) error

type Value_Number

type Value_Number struct {
	// Number holds a KIND_COUNT, KIND_NUMBER or KIND_MAX field.
	Number float64 `protobuf:"fixed64,1,opt,name=number,proto3,oneof"`
}

func (*Value_Number) CloneOneofVT

func (m *Value_Number) CloneOneofVT() isValue_Value

func (*Value_Number) CloneVT

func (m *Value_Number) CloneVT() *Value_Number

func (*Value_Number) EqualVT

func (this *Value_Number) EqualVT(thatIface isValue_Value) bool

func (*Value_Number) MarshalToSizedBufferVT

func (m *Value_Number) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_Number) MarshalToVT

func (m *Value_Number) MarshalToVT(dAtA []byte) (int, error)

func (*Value_Number) SizeVT

func (m *Value_Number) SizeVT() (n int)

type Value_Tags

type Value_Tags struct {
	// Tags holds a KIND_TAGS field.
	Tags *Tags `protobuf:"bytes,3,opt,name=tags,proto3,oneof"`
}

func (*Value_Tags) CloneOneofVT

func (m *Value_Tags) CloneOneofVT() isValue_Value

func (*Value_Tags) CloneVT

func (m *Value_Tags) CloneVT() *Value_Tags

func (*Value_Tags) EqualVT

func (this *Value_Tags) EqualVT(thatIface isValue_Value) bool

func (*Value_Tags) MarshalToSizedBufferVT

func (m *Value_Tags) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_Tags) MarshalToVT

func (m *Value_Tags) MarshalToVT(dAtA []byte) (int, error)

func (*Value_Tags) SizeVT

func (m *Value_Tags) SizeVT() (n int)

type Value_Text

type Value_Text struct {
	// Text holds a KIND_STRING field.
	Text string `protobuf:"bytes,2,opt,name=text,proto3,oneof"`
}

func (*Value_Text) CloneOneofVT

func (m *Value_Text) CloneOneofVT() isValue_Value

func (*Value_Text) CloneVT

func (m *Value_Text) CloneVT() *Value_Text

func (*Value_Text) EqualVT

func (this *Value_Text) EqualVT(thatIface isValue_Value) bool

func (*Value_Text) MarshalToSizedBufferVT

func (m *Value_Text) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Value_Text) MarshalToVT

func (m *Value_Text) MarshalToVT(dAtA []byte) (int, error)

func (*Value_Text) SizeVT

func (m *Value_Text) SizeVT() (n int)

type Writers

type Writers int32

Writers is who may change a record type's records.

const (
	// WRITERS_UNKNOWN is an unset or unsupported value; a manifest must set
	// one of the others.
	Writers_WRITERS_UNKNOWN Writers = 0
	// WRITERS_SERVERS takes changes only from a game server the host trusts
	// to run the mod, for a player in its game, so the values carry that
	// server's trust, such as a level or rounds won.
	Writers_WRITERS_SERVERS Writers = 1
	// WRITERS_PLAYERS holds the player's own choices, such as settings: the
	// host also takes changes made for the player by the player's own PC.
	Writers_WRITERS_PLAYERS Writers = 2
)

func (Writers) Enum

func (x Writers) Enum() *Writers

func (Writers) MarshalJSON

func (x Writers) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Writers to JSON.

func (Writers) MarshalProtoJSON

func (x Writers) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Writers to JSON.

func (Writers) MarshalProtoText

func (x Writers) MarshalProtoText() string

func (Writers) MarshalText

func (x Writers) MarshalText() ([]byte, error)

MarshalText marshals the Writers to text.

func (Writers) String

func (x Writers) String() string

func (*Writers) UnmarshalJSON

func (x *Writers) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Writers from JSON.

func (*Writers) UnmarshalProtoJSON

func (x *Writers) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Writers from JSON.

func (*Writers) UnmarshalText

func (x *Writers) UnmarshalText(b []byte) error

UnmarshalText unmarshals the Writers from text.

Jump to

Keyboard shortcuts

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