messaging

package
v0.0.0-...-d64fcf2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SpecialUserID_name = map[int32]string{
		0: "HOST",
	}
	SpecialUserID_value = map[string]int32{
		"HOST": 0,
	}
)

Enum value maps for SpecialUserID.

View Source
var (
	GameStatus_name = map[int32]string{
		0: "NEW",
		1: "RUNNING",
		2: "FINISHED",
	}
	GameStatus_value = map[string]int32{
		"NEW":      0,
		"RUNNING":  1,
		"FINISHED": 2,
	}
)

Enum value maps for GameStatus.

View Source
var (
	CardDeckType_name = map[int32]string{
		0: "DEFAULT",
		1: "TSHIRT",
	}
	CardDeckType_value = map[string]int32{
		"DEFAULT": 0,
		"TSHIRT":  1,
	}
)

Enum value maps for CardDeckType.

View Source
var (
	CardDeckCards_name = map[int32]string{
		0:  "SPECIAL_NOTCHOSEN",
		1:  "SPECIAL_CHOSEN",
		2:  "SPECIAL_JOINMAJORITY",
		3:  "SPECIAL_NOMAJORITY",
		4:  "DEFAULT_ZERO",
		5:  "DEFAULT_PFIVE",
		6:  "DEFAULT_ONE",
		7:  "DEFAULT_TWO",
		8:  "DEFAULT_THREE",
		9:  "DEFAULT_FIVE",
		10: "DEFAULT_EIGHT",
		11: "DEFAULT_THIRTEEN",
		12: "DEFAULT_TWENTY",
		13: "DEFAULT_FOURTY",
		14: "DEFAULT_HUNDRED",
		15: "TSHIRT_S",
		16: "TSHIRT_M",
		17: "TSHIRT_L",
		18: "TSHIRT_XL",
	}
	CardDeckCards_value = map[string]int32{
		"SPECIAL_NOTCHOSEN":    0,
		"SPECIAL_CHOSEN":       1,
		"SPECIAL_JOINMAJORITY": 2,
		"SPECIAL_NOMAJORITY":   3,
		"DEFAULT_ZERO":         4,
		"DEFAULT_PFIVE":        5,
		"DEFAULT_ONE":          6,
		"DEFAULT_TWO":          7,
		"DEFAULT_THREE":        8,
		"DEFAULT_FIVE":         9,
		"DEFAULT_EIGHT":        10,
		"DEFAULT_THIRTEEN":     11,
		"DEFAULT_TWENTY":       12,
		"DEFAULT_FOURTY":       13,
		"DEFAULT_HUNDRED":      14,
		"TSHIRT_S":             15,
		"TSHIRT_M":             16,
		"TSHIRT_L":             17,
		"TSHIRT_XL":            18,
	}
)

Enum value maps for CardDeckCards.

View Source
var (
	Connection_State_name = map[int32]string{
		0: "CONNECTION",
		1: "OPEN",
		2: "INIT",
		3: "ESTABLISHED",
		4: "DISCONNECTED",
	}
	Connection_State_value = map[string]int32{
		"CONNECTION":   0,
		"OPEN":         1,
		"INIT":         2,
		"ESTABLISHED":  3,
		"DISCONNECTED": 4,
	}
)

Enum value maps for Connection_State.

View Source
var File_pkg_communication_messaging_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CardDeckCards

type CardDeckCards int32
const (
	CardDeckCards_SPECIAL_NOTCHOSEN    CardDeckCards = 0
	CardDeckCards_SPECIAL_CHOSEN       CardDeckCards = 1
	CardDeckCards_SPECIAL_JOINMAJORITY CardDeckCards = 2
	CardDeckCards_SPECIAL_NOMAJORITY   CardDeckCards = 3
	CardDeckCards_DEFAULT_ZERO         CardDeckCards = 4
	CardDeckCards_DEFAULT_PFIVE        CardDeckCards = 5
	CardDeckCards_DEFAULT_ONE          CardDeckCards = 6
	CardDeckCards_DEFAULT_TWO          CardDeckCards = 7
	CardDeckCards_DEFAULT_THREE        CardDeckCards = 8
	CardDeckCards_DEFAULT_FIVE         CardDeckCards = 9
	CardDeckCards_DEFAULT_EIGHT        CardDeckCards = 10
	CardDeckCards_DEFAULT_THIRTEEN     CardDeckCards = 11
	CardDeckCards_DEFAULT_TWENTY       CardDeckCards = 12
	CardDeckCards_DEFAULT_FOURTY       CardDeckCards = 13
	CardDeckCards_DEFAULT_HUNDRED      CardDeckCards = 14
	CardDeckCards_TSHIRT_S             CardDeckCards = 15
	CardDeckCards_TSHIRT_M             CardDeckCards = 16
	CardDeckCards_TSHIRT_L             CardDeckCards = 17
	CardDeckCards_TSHIRT_XL            CardDeckCards = 18
)

func (CardDeckCards) Descriptor

func (CardDeckCards) Enum

func (x CardDeckCards) Enum() *CardDeckCards

func (CardDeckCards) EnumDescriptor deprecated

func (CardDeckCards) EnumDescriptor() ([]byte, []int)

Deprecated: Use CardDeckCards.Descriptor instead.

func (CardDeckCards) Number

func (CardDeckCards) String

func (x CardDeckCards) String() string

func (CardDeckCards) Type

type CardDeckType

type CardDeckType int32
const (
	CardDeckType_DEFAULT CardDeckType = 0
	CardDeckType_TSHIRT  CardDeckType = 1
)

func (CardDeckType) Descriptor

func (CardDeckType) Enum

func (x CardDeckType) Enum() *CardDeckType

func (CardDeckType) EnumDescriptor deprecated

func (CardDeckType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CardDeckType.Descriptor instead.

func (CardDeckType) Number

func (CardDeckType) String

func (x CardDeckType) String() string

func (CardDeckType) Type

type Connection

type Connection struct {
	Hosting bool             `protobuf:"varint,1,opt,name=hosting,proto3" json:"hosting,omitempty"`
	State   Connection_State `protobuf:"varint,2,opt,name=state,proto3,enum=messaging.Connection_State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*Connection) Descriptor deprecated

func (*Connection) Descriptor() ([]byte, []int)

Deprecated: Use Connection.ProtoReflect.Descriptor instead.

func (*Connection) GetHosting

func (x *Connection) GetHosting() bool

func (*Connection) GetState

func (x *Connection) GetState() Connection_State

func (*Connection) ProtoMessage

func (*Connection) ProtoMessage()

func (*Connection) ProtoReflect

func (x *Connection) ProtoReflect() protoreflect.Message

func (*Connection) Reset

func (x *Connection) Reset()

func (*Connection) String

func (x *Connection) String() string

type Connection_State

type Connection_State int32
const (
	Connection_CONNECTION   Connection_State = 0
	Connection_OPEN         Connection_State = 1
	Connection_INIT         Connection_State = 2
	Connection_ESTABLISHED  Connection_State = 3
	Connection_DISCONNECTED Connection_State = 4
)

func (Connection_State) Descriptor

func (Connection_State) Enum

func (Connection_State) EnumDescriptor deprecated

func (Connection_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Connection_State.Descriptor instead.

func (Connection_State) Number

func (Connection_State) String

func (x Connection_State) String() string

func (Connection_State) Type

type Container

type Container struct {
	UserID    string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	GameID    string `protobuf:"bytes,2,opt,name=gameID,proto3" json:"gameID,omitempty"`
	GatewayID string `protobuf:"bytes,3,opt,name=gatewayID,proto3" json:"gatewayID,omitempty"`
	// Types that are assignable to Msg:
	//	*Container_Connection
	//	*Container_GameStatusUpdate
	//	*Container_PlayerUpdate
	//	*Container_HostUpdate
	//	*Container_UserToken
	//	*Container_OpenGame
	//	*Container_KickUser
	Msg isContainer_Msg `protobuf_oneof:"msg"`
	// contains filtered or unexported fields
}

func (*Container) Descriptor deprecated

func (*Container) Descriptor() ([]byte, []int)

Deprecated: Use Container.ProtoReflect.Descriptor instead.

func (*Container) GetConnection

func (x *Container) GetConnection() *Connection

func (*Container) GetGameID

func (x *Container) GetGameID() string

func (*Container) GetGameStatusUpdate

func (x *Container) GetGameStatusUpdate() *GameStatusUpdate

func (*Container) GetGatewayID

func (x *Container) GetGatewayID() string

func (*Container) GetHostUpdate

func (x *Container) GetHostUpdate() *HostUpdate

func (*Container) GetKickUser

func (x *Container) GetKickUser() *KickUser

func (*Container) GetMsg

func (m *Container) GetMsg() isContainer_Msg

func (*Container) GetOpenGame

func (x *Container) GetOpenGame() *OpenGame

func (*Container) GetPlayerUpdate

func (x *Container) GetPlayerUpdate() *PlayerUpdate

func (*Container) GetUserID

func (x *Container) GetUserID() string

func (*Container) GetUserToken

func (x *Container) GetUserToken() *UserToken

func (*Container) ProtoMessage

func (*Container) ProtoMessage()

func (*Container) ProtoReflect

func (x *Container) ProtoReflect() protoreflect.Message

func (*Container) Reset

func (x *Container) Reset()

func (*Container) String

func (x *Container) String() string

type Container_Connection

type Container_Connection struct {
	Connection *Connection `protobuf:"bytes,4,opt,name=connection,proto3,oneof"`
}

type Container_GameStatusUpdate

type Container_GameStatusUpdate struct {
	GameStatusUpdate *GameStatusUpdate `protobuf:"bytes,5,opt,name=gameStatusUpdate,proto3,oneof"`
}

type Container_HostUpdate

type Container_HostUpdate struct {
	HostUpdate *HostUpdate `protobuf:"bytes,7,opt,name=hostUpdate,proto3,oneof"`
}

type Container_KickUser

type Container_KickUser struct {
	KickUser *KickUser `protobuf:"bytes,10,opt,name=kickUser,proto3,oneof"`
}

type Container_OpenGame

type Container_OpenGame struct {
	OpenGame *OpenGame `protobuf:"bytes,9,opt,name=openGame,proto3,oneof"`
}

type Container_PlayerUpdate

type Container_PlayerUpdate struct {
	PlayerUpdate *PlayerUpdate `protobuf:"bytes,6,opt,name=playerUpdate,proto3,oneof"`
}

type Container_UserToken

type Container_UserToken struct {
	UserToken *UserToken `protobuf:"bytes,8,opt,name=userToken,proto3,oneof"`
}

type GameStatus

type GameStatus int32
const (
	GameStatus_NEW      GameStatus = 0
	GameStatus_RUNNING  GameStatus = 1
	GameStatus_FINISHED GameStatus = 2
)

func (GameStatus) Descriptor

func (GameStatus) Descriptor() protoreflect.EnumDescriptor

func (GameStatus) Enum

func (x GameStatus) Enum() *GameStatus

func (GameStatus) EnumDescriptor deprecated

func (GameStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use GameStatus.Descriptor instead.

func (GameStatus) Number

func (x GameStatus) Number() protoreflect.EnumNumber

func (GameStatus) String

func (x GameStatus) String() string

func (GameStatus) Type

type GameStatusUpdate

type GameStatusUpdate struct {
	PlayerStatus          map[string]CardDeckCards `` /* 195-byte string literal not displayed */
	HighlightedPlayers    []string                 `protobuf:"bytes,2,rep,name=highlightedPlayers,proto3" json:"highlightedPlayers,omitempty"`
	MajorityJoinedPlayers []string                 `protobuf:"bytes,3,rep,name=majorityJoinedPlayers,proto3" json:"majorityJoinedPlayers,omitempty"`
	MajorityVotedCard     CardDeckCards            `protobuf:"varint,4,opt,name=majorityVotedCard,proto3,enum=messaging.CardDeckCards" json:"majorityVotedCard,omitempty"`
	UnanimousVote         bool                     `protobuf:"varint,5,opt,name=unanimousVote,proto3" json:"unanimousVote,omitempty"`
	Hosts                 []string                 `protobuf:"bytes,6,rep,name=hosts,proto3" json:"hosts,omitempty"`
	GameStatus            GameStatus               `protobuf:"varint,7,opt,name=gameStatus,proto3,enum=messaging.GameStatus" json:"gameStatus,omitempty"`
	GameTitle             string                   `protobuf:"bytes,8,opt,name=gameTitle,proto3" json:"gameTitle,omitempty"`
	GameDeck              string                   `protobuf:"bytes,9,opt,name=gameDeck,proto3" json:"gameDeck,omitempty"`
	GameTopic             string                   `protobuf:"bytes,10,opt,name=gameTopic,proto3" json:"gameTopic,omitempty"`
	GameRound             int32                    `protobuf:"varint,11,opt,name=gameRound,proto3" json:"gameRound,omitempty"`
	CardDeck              CardDeckType             `protobuf:"varint,12,opt,name=cardDeck,proto3,enum=messaging.CardDeckType" json:"cardDeck,omitempty"`
	GameTopicLink         string                   `protobuf:"bytes,13,opt,name=gameTopicLink,proto3" json:"gameTopicLink,omitempty"`
	// contains filtered or unexported fields
}

func (*GameStatusUpdate) Descriptor deprecated

func (*GameStatusUpdate) Descriptor() ([]byte, []int)

Deprecated: Use GameStatusUpdate.ProtoReflect.Descriptor instead.

func (*GameStatusUpdate) GetCardDeck

func (x *GameStatusUpdate) GetCardDeck() CardDeckType

func (*GameStatusUpdate) GetGameDeck

func (x *GameStatusUpdate) GetGameDeck() string

func (*GameStatusUpdate) GetGameRound

func (x *GameStatusUpdate) GetGameRound() int32

func (*GameStatusUpdate) GetGameStatus

func (x *GameStatusUpdate) GetGameStatus() GameStatus

func (*GameStatusUpdate) GetGameTitle

func (x *GameStatusUpdate) GetGameTitle() string

func (*GameStatusUpdate) GetGameTopic

func (x *GameStatusUpdate) GetGameTopic() string
func (x *GameStatusUpdate) GetGameTopicLink() string

func (*GameStatusUpdate) GetHighlightedPlayers

func (x *GameStatusUpdate) GetHighlightedPlayers() []string

func (*GameStatusUpdate) GetHosts

func (x *GameStatusUpdate) GetHosts() []string

func (*GameStatusUpdate) GetMajorityJoinedPlayers

func (x *GameStatusUpdate) GetMajorityJoinedPlayers() []string

func (*GameStatusUpdate) GetMajorityVotedCard

func (x *GameStatusUpdate) GetMajorityVotedCard() CardDeckCards

func (*GameStatusUpdate) GetPlayerStatus

func (x *GameStatusUpdate) GetPlayerStatus() map[string]CardDeckCards

func (*GameStatusUpdate) GetUnanimousVote

func (x *GameStatusUpdate) GetUnanimousVote() bool

func (*GameStatusUpdate) ProtoMessage

func (*GameStatusUpdate) ProtoMessage()

func (*GameStatusUpdate) ProtoReflect

func (x *GameStatusUpdate) ProtoReflect() protoreflect.Message

func (*GameStatusUpdate) Reset

func (x *GameStatusUpdate) Reset()

func (*GameStatusUpdate) String

func (x *GameStatusUpdate) String() string

type HostUpdate

type HostUpdate struct {
	GameStatus    GameStatus `protobuf:"varint,1,opt,name=gameStatus,proto3,enum=messaging.GameStatus" json:"gameStatus,omitempty"`
	GameTitle     string     `protobuf:"bytes,2,opt,name=gameTitle,proto3" json:"gameTitle,omitempty"`
	GameTopic     string     `protobuf:"bytes,3,opt,name=gameTopic,proto3" json:"gameTopic,omitempty"`
	GameTopicLink string     `protobuf:"bytes,4,opt,name=gameTopicLink,proto3" json:"gameTopicLink,omitempty"`
	// contains filtered or unexported fields
}

func (*HostUpdate) Descriptor deprecated

func (*HostUpdate) Descriptor() ([]byte, []int)

Deprecated: Use HostUpdate.ProtoReflect.Descriptor instead.

func (*HostUpdate) GetGameStatus

func (x *HostUpdate) GetGameStatus() GameStatus

func (*HostUpdate) GetGameTitle

func (x *HostUpdate) GetGameTitle() string

func (*HostUpdate) GetGameTopic

func (x *HostUpdate) GetGameTopic() string
func (x *HostUpdate) GetGameTopicLink() string

func (*HostUpdate) ProtoMessage

func (*HostUpdate) ProtoMessage()

func (*HostUpdate) ProtoReflect

func (x *HostUpdate) ProtoReflect() protoreflect.Message

func (*HostUpdate) Reset

func (x *HostUpdate) Reset()

func (*HostUpdate) String

func (x *HostUpdate) String() string

type KickUser

type KickUser struct {
	UserID string `protobuf:"bytes,1,opt,name=UserID,proto3" json:"UserID,omitempty"`
	// contains filtered or unexported fields
}

func (*KickUser) Descriptor deprecated

func (*KickUser) Descriptor() ([]byte, []int)

Deprecated: Use KickUser.ProtoReflect.Descriptor instead.

func (*KickUser) GetUserID

func (x *KickUser) GetUserID() string

func (*KickUser) ProtoMessage

func (*KickUser) ProtoMessage()

func (*KickUser) ProtoReflect

func (x *KickUser) ProtoReflect() protoreflect.Message

func (*KickUser) Reset

func (x *KickUser) Reset()

func (*KickUser) String

func (x *KickUser) String() string

type OpenGame

type OpenGame struct {
	GameTitle string       `protobuf:"bytes,1,opt,name=gameTitle,proto3" json:"gameTitle,omitempty"`
	CardDeck  CardDeckType `protobuf:"varint,2,opt,name=cardDeck,proto3,enum=messaging.CardDeckType" json:"cardDeck,omitempty"`
	// contains filtered or unexported fields
}

func (*OpenGame) Descriptor deprecated

func (*OpenGame) Descriptor() ([]byte, []int)

Deprecated: Use OpenGame.ProtoReflect.Descriptor instead.

func (*OpenGame) GetCardDeck

func (x *OpenGame) GetCardDeck() CardDeckType

func (*OpenGame) GetGameTitle

func (x *OpenGame) GetGameTitle() string

func (*OpenGame) ProtoMessage

func (*OpenGame) ProtoMessage()

func (*OpenGame) ProtoReflect

func (x *OpenGame) ProtoReflect() protoreflect.Message

func (*OpenGame) Reset

func (x *OpenGame) Reset()

func (*OpenGame) String

func (x *OpenGame) String() string

type PlayerUpdate

type PlayerUpdate struct {
	Card CardDeckCards `protobuf:"varint,1,opt,name=card,proto3,enum=messaging.CardDeckCards" json:"card,omitempty"`
	// contains filtered or unexported fields
}

func (*PlayerUpdate) Descriptor deprecated

func (*PlayerUpdate) Descriptor() ([]byte, []int)

Deprecated: Use PlayerUpdate.ProtoReflect.Descriptor instead.

func (*PlayerUpdate) GetCard

func (x *PlayerUpdate) GetCard() CardDeckCards

func (*PlayerUpdate) ProtoMessage

func (*PlayerUpdate) ProtoMessage()

func (*PlayerUpdate) ProtoReflect

func (x *PlayerUpdate) ProtoReflect() protoreflect.Message

func (*PlayerUpdate) Reset

func (x *PlayerUpdate) Reset()

func (*PlayerUpdate) String

func (x *PlayerUpdate) String() string

type SpecialUserID

type SpecialUserID int32
const (
	SpecialUserID_HOST SpecialUserID = 0
)

func (SpecialUserID) Descriptor

func (SpecialUserID) Enum

func (x SpecialUserID) Enum() *SpecialUserID

func (SpecialUserID) EnumDescriptor deprecated

func (SpecialUserID) EnumDescriptor() ([]byte, []int)

Deprecated: Use SpecialUserID.Descriptor instead.

func (SpecialUserID) Number

func (SpecialUserID) String

func (x SpecialUserID) String() string

func (SpecialUserID) Type

type UserToken

type UserToken struct {
	UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	Token  string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*UserToken) Descriptor deprecated

func (*UserToken) Descriptor() ([]byte, []int)

Deprecated: Use UserToken.ProtoReflect.Descriptor instead.

func (*UserToken) GetToken

func (x *UserToken) GetToken() string

func (*UserToken) GetUserID

func (x *UserToken) GetUserID() string

func (*UserToken) ProtoMessage

func (*UserToken) ProtoMessage()

func (*UserToken) ProtoReflect

func (x *UserToken) ProtoReflect() protoreflect.Message

func (*UserToken) Reset

func (x *UserToken) Reset()

func (*UserToken) String

func (x *UserToken) String() string

Jump to

Keyboard shortcuts

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