proto

package
v0.0.0-...-e42abf7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BoardShape_name = map[int32]string{
		0: "UNKNOWN",
		1: "standard_31_by_30",
	}
	BoardShape_value = map[string]int32{
		"UNKNOWN":           0,
		"standard_31_by_30": 1,
	}
)

Enum value maps for BoardShape.

View Source
var (
	Operation_Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "SUCCESS",
		2: "FAILURE",
	}
	Operation_Status_value = map[string]int32{
		"UNKNOWN": 0,
		"SUCCESS": 1,
		"FAILURE": 2,
	}
)

Enum value maps for Operation_Status.

View Source
var (
	Game_Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "PLAYING",
		2: "DONE",
	}
	Game_Status_value = map[string]int32{
		"UNKNOWN": 0,
		"PLAYING": 1,
		"DONE":    2,
	}
)

Enum value maps for Game_Status.

View Source
var File_proto_tronimoes_proto protoreflect.FileDescriptor

Functions

func RegisterTronimoesServer

func RegisterTronimoesServer(s *grpc.Server, srv TronimoesServer)

Types

type AccessTokenResponse

type AccessTokenResponse struct {

	// Token to send with authenticated RPCs.
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// The expiry beyond which the token will not work.
	Expiry *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessTokenResponse) Descriptor deprecated

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

Deprecated: Use AccessTokenResponse.ProtoReflect.Descriptor instead.

func (*AccessTokenResponse) GetAccessToken

func (x *AccessTokenResponse) GetAccessToken() string

func (*AccessTokenResponse) GetExpiry

func (x *AccessTokenResponse) GetExpiry() *timestamppb.Timestamp

func (*AccessTokenResponse) ProtoMessage

func (*AccessTokenResponse) ProtoMessage()

func (*AccessTokenResponse) ProtoReflect

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

func (*AccessTokenResponse) Reset

func (x *AccessTokenResponse) Reset()

func (*AccessTokenResponse) String

func (x *AccessTokenResponse) String() string

type BoardShape

type BoardShape int32
const (
	BoardShape_UNKNOWN           BoardShape = 0
	BoardShape_standard_31_by_30 BoardShape = 1
)

func (BoardShape) Descriptor

func (BoardShape) Descriptor() protoreflect.EnumDescriptor

func (BoardShape) Enum

func (x BoardShape) Enum() *BoardShape

func (BoardShape) EnumDescriptor deprecated

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

Deprecated: Use BoardShape.Descriptor instead.

func (BoardShape) Number

func (x BoardShape) Number() protoreflect.EnumNumber

func (BoardShape) String

func (x BoardShape) String() string

func (BoardShape) Type

type CreateAccessTokenRequest

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

func (*CreateAccessTokenRequest) Descriptor deprecated

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

Deprecated: Use CreateAccessTokenRequest.ProtoReflect.Descriptor instead.

func (*CreateAccessTokenRequest) GetPlayerId

func (x *CreateAccessTokenRequest) GetPlayerId() string

func (*CreateAccessTokenRequest) ProtoMessage

func (*CreateAccessTokenRequest) ProtoMessage()

func (*CreateAccessTokenRequest) ProtoReflect

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

func (*CreateAccessTokenRequest) Reset

func (x *CreateAccessTokenRequest) Reset()

func (*CreateAccessTokenRequest) String

func (x *CreateAccessTokenRequest) String() string

type CreateGameRequest

type CreateGameRequest struct {

	// If discoverable is true, players can join you without knowing you.
	Discoverable bool `protobuf:"varint,1,opt,name=discoverable,proto3" json:"discoverable,omitempty"`
	// Only look for games that involve one of these players.
	Players []string `protobuf:"bytes,2,rep,name=players,proto3" json:"players,omitempty"`
	// If private is true, don't join a game with a player not requested.
	Private    bool       `protobuf:"varint,3,opt,name=private,proto3" json:"private,omitempty"`
	MinPlayers int32      `protobuf:"varint,4,opt,name=min_players,json=minPlayers,proto3" json:"min_players,omitempty"`
	MaxPlayers int32      `protobuf:"varint,5,opt,name=max_players,json=maxPlayers,proto3" json:"max_players,omitempty"`
	PlayerId   string     `protobuf:"bytes,6,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	BoardShape BoardShape `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateGameRequest) Descriptor deprecated

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

Deprecated: Use CreateGameRequest.ProtoReflect.Descriptor instead.

func (*CreateGameRequest) GetBoardShape

func (x *CreateGameRequest) GetBoardShape() BoardShape

func (*CreateGameRequest) GetDiscoverable

func (x *CreateGameRequest) GetDiscoverable() bool

func (*CreateGameRequest) GetMaxPlayers

func (x *CreateGameRequest) GetMaxPlayers() int32

func (*CreateGameRequest) GetMinPlayers

func (x *CreateGameRequest) GetMinPlayers() int32

func (*CreateGameRequest) GetPlayerId

func (x *CreateGameRequest) GetPlayerId() string

func (*CreateGameRequest) GetPlayers

func (x *CreateGameRequest) GetPlayers() []string

func (*CreateGameRequest) GetPrivate

func (x *CreateGameRequest) GetPrivate() bool

func (*CreateGameRequest) ProtoMessage

func (*CreateGameRequest) ProtoMessage()

func (*CreateGameRequest) ProtoReflect

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

func (*CreateGameRequest) Reset

func (x *CreateGameRequest) Reset()

func (*CreateGameRequest) String

func (x *CreateGameRequest) String() string

type Game

type Game struct {
	GameId         string      `protobuf:"bytes,1,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"`
	Players        []*Player   `protobuf:"bytes,2,rep,name=players,proto3" json:"players,omitempty"`
	Status         Game_Status `protobuf:"varint,3,opt,name=status,proto3,enum=skelterjohn.tronimoes.Game_Status" json:"status,omitempty"`
	RounderLeaders []int32     `protobuf:"varint,4,rep,packed,name=rounder_leaders,json=rounderLeaders,proto3" json:"rounder_leaders,omitempty"`
	BoardShape     BoardShape  `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Game) Descriptor deprecated

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

Deprecated: Use Game.ProtoReflect.Descriptor instead.

func (*Game) GetBoardShape

func (x *Game) GetBoardShape() BoardShape

func (*Game) GetGameId

func (x *Game) GetGameId() string

func (*Game) GetPlayers

func (x *Game) GetPlayers() []*Player

func (*Game) GetRounderLeaders

func (x *Game) GetRounderLeaders() []int32

func (*Game) GetStatus

func (x *Game) GetStatus() Game_Status

func (*Game) ProtoMessage

func (*Game) ProtoMessage()

func (*Game) ProtoReflect

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

func (*Game) Reset

func (x *Game) Reset()

func (*Game) String

func (x *Game) String() string

type Game_Status

type Game_Status int32
const (
	Game_UNKNOWN Game_Status = 0
	Game_PLAYING Game_Status = 1
	Game_DONE    Game_Status = 2
)

func (Game_Status) Descriptor

func (Game_Status) Enum

func (x Game_Status) Enum() *Game_Status

func (Game_Status) EnumDescriptor deprecated

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

Deprecated: Use Game_Status.Descriptor instead.

func (Game_Status) Number

func (x Game_Status) Number() protoreflect.EnumNumber

func (Game_Status) String

func (x Game_Status) String() string

func (Game_Status) Type

type GetBoardRequest

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

func (*GetBoardRequest) Descriptor deprecated

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

Deprecated: Use GetBoardRequest.ProtoReflect.Descriptor instead.

func (*GetBoardRequest) GetGameId

func (x *GetBoardRequest) GetGameId() string

func (*GetBoardRequest) ProtoMessage

func (*GetBoardRequest) ProtoMessage()

func (*GetBoardRequest) ProtoReflect

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

func (*GetBoardRequest) Reset

func (x *GetBoardRequest) Reset()

func (*GetBoardRequest) String

func (x *GetBoardRequest) String() string

type GetGameRequest

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

func (*GetGameRequest) Descriptor deprecated

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

Deprecated: Use GetGameRequest.ProtoReflect.Descriptor instead.

func (*GetGameRequest) GetGameId

func (x *GetGameRequest) GetGameId() string

func (*GetGameRequest) ProtoMessage

func (*GetGameRequest) ProtoMessage()

func (*GetGameRequest) ProtoReflect

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

func (*GetGameRequest) Reset

func (x *GetGameRequest) Reset()

func (*GetGameRequest) String

func (x *GetGameRequest) String() string

type GetMovesRequest

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

func (*GetMovesRequest) Descriptor deprecated

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

Deprecated: Use GetMovesRequest.ProtoReflect.Descriptor instead.

func (*GetMovesRequest) GetGameId

func (x *GetMovesRequest) GetGameId() string

func (*GetMovesRequest) ProtoMessage

func (*GetMovesRequest) ProtoMessage()

func (*GetMovesRequest) ProtoReflect

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

func (*GetMovesRequest) Reset

func (x *GetMovesRequest) Reset()

func (*GetMovesRequest) String

func (x *GetMovesRequest) String() string

type GetMovesResponse

type GetMovesResponse struct {
	Placements []*proto.Placement `protobuf:"bytes,1,rep,name=placements,proto3" json:"placements,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMovesResponse) Descriptor deprecated

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

Deprecated: Use GetMovesResponse.ProtoReflect.Descriptor instead.

func (*GetMovesResponse) GetPlacements

func (x *GetMovesResponse) GetPlacements() []*proto.Placement

func (*GetMovesResponse) ProtoMessage

func (*GetMovesResponse) ProtoMessage()

func (*GetMovesResponse) ProtoReflect

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

func (*GetMovesResponse) Reset

func (x *GetMovesResponse) Reset()

func (*GetMovesResponse) String

func (x *GetMovesResponse) String() string

type GetOperationRequest

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

func (*GetOperationRequest) Descriptor deprecated

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

Deprecated: Use GetOperationRequest.ProtoReflect.Descriptor instead.

func (*GetOperationRequest) GetOperationId

func (x *GetOperationRequest) GetOperationId() string

func (*GetOperationRequest) ProtoMessage

func (*GetOperationRequest) ProtoMessage()

func (*GetOperationRequest) ProtoReflect

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

func (*GetOperationRequest) Reset

func (x *GetOperationRequest) Reset()

func (*GetOperationRequest) String

func (x *GetOperationRequest) String() string

type JoinResponse

type JoinResponse struct {
	Operation *Operation `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinResponse) Descriptor deprecated

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

Deprecated: Use JoinResponse.ProtoReflect.Descriptor instead.

func (*JoinResponse) GetOperation

func (x *JoinResponse) GetOperation() *Operation

func (*JoinResponse) ProtoMessage

func (*JoinResponse) ProtoMessage()

func (*JoinResponse) ProtoReflect

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

func (*JoinResponse) Reset

func (x *JoinResponse) Reset()

func (*JoinResponse) String

func (x *JoinResponse) String() string

type LayTileRequest

type LayTileRequest struct {
	GameId    string           `protobuf:"bytes,1,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"`
	Placement *proto.Placement `protobuf:"bytes,2,opt,name=placement,proto3" json:"placement,omitempty"`
	// contains filtered or unexported fields
}

func (*LayTileRequest) Descriptor deprecated

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

Deprecated: Use LayTileRequest.ProtoReflect.Descriptor instead.

func (*LayTileRequest) GetGameId

func (x *LayTileRequest) GetGameId() string

func (*LayTileRequest) GetPlacement

func (x *LayTileRequest) GetPlacement() *proto.Placement

func (*LayTileRequest) ProtoMessage

func (*LayTileRequest) ProtoMessage()

func (*LayTileRequest) ProtoReflect

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

func (*LayTileRequest) Reset

func (x *LayTileRequest) Reset()

func (*LayTileRequest) String

func (x *LayTileRequest) String() string

type Operation

type Operation struct {
	OperationId string           `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
	Done        bool             `protobuf:"varint,2,opt,name=done,proto3" json:"done,omitempty"`
	Payload     *anypb.Any       `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	Status      Operation_Status `protobuf:"varint,4,opt,name=status,proto3,enum=skelterjohn.tronimoes.Operation_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Operation) Descriptor deprecated

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

Deprecated: Use Operation.ProtoReflect.Descriptor instead.

func (*Operation) GetDone

func (x *Operation) GetDone() bool

func (*Operation) GetOperationId

func (x *Operation) GetOperationId() string

func (*Operation) GetPayload

func (x *Operation) GetPayload() *anypb.Any

func (*Operation) GetStatus

func (x *Operation) GetStatus() Operation_Status

func (*Operation) ProtoMessage

func (*Operation) ProtoMessage()

func (*Operation) ProtoReflect

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

func (*Operation) Reset

func (x *Operation) Reset()

func (*Operation) String

func (x *Operation) String() string

type Operation_Status

type Operation_Status int32
const (
	Operation_UNKNOWN Operation_Status = 0
	Operation_SUCCESS Operation_Status = 1
	Operation_FAILURE Operation_Status = 2
)

func (Operation_Status) Descriptor

func (Operation_Status) Enum

func (Operation_Status) EnumDescriptor deprecated

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

Deprecated: Use Operation_Status.Descriptor instead.

func (Operation_Status) Number

func (Operation_Status) String

func (x Operation_Status) String() string

func (Operation_Status) Type

type Player

type Player struct {
	PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Score    int32  `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty"`
	// contains filtered or unexported fields
}

func (*Player) Descriptor deprecated

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

Deprecated: Use Player.ProtoReflect.Descriptor instead.

func (*Player) GetName

func (x *Player) GetName() string

func (*Player) GetPlayerId

func (x *Player) GetPlayerId() string

func (*Player) GetScore

func (x *Player) GetScore() int32

func (*Player) ProtoMessage

func (*Player) ProtoMessage()

func (*Player) ProtoReflect

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

func (*Player) Reset

func (x *Player) Reset()

func (*Player) String

func (x *Player) String() string

type TronimoesClient

type TronimoesClient interface {
	CreateAccessToken(ctx context.Context, in *CreateAccessTokenRequest, opts ...grpc.CallOption) (*AccessTokenResponse, error)
	CreateGame(ctx context.Context, in *CreateGameRequest, opts ...grpc.CallOption) (*Operation, error)
	GetOperation(ctx context.Context, in *GetOperationRequest, opts ...grpc.CallOption) (*Operation, error)
	GetGame(ctx context.Context, in *GetGameRequest, opts ...grpc.CallOption) (*Game, error)
	GetBoard(ctx context.Context, in *GetBoardRequest, opts ...grpc.CallOption) (*proto.Board, error)
	GetMoves(ctx context.Context, in *GetMovesRequest, opts ...grpc.CallOption) (*GetMovesResponse, error)
	LayTile(ctx context.Context, in *LayTileRequest, opts ...grpc.CallOption) (*proto.Board, error)
}

TronimoesClient is the client API for Tronimoes service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTronimoesClient

func NewTronimoesClient(cc grpc.ClientConnInterface) TronimoesClient

type TronimoesServer

TronimoesServer is the server API for Tronimoes service.

type UnimplementedTronimoesServer

type UnimplementedTronimoesServer struct {
}

UnimplementedTronimoesServer can be embedded to have forward compatible implementations.

func (*UnimplementedTronimoesServer) CreateAccessToken

func (*UnimplementedTronimoesServer) CreateGame

func (*UnimplementedTronimoesServer) GetBoard

func (*UnimplementedTronimoesServer) GetGame

func (*UnimplementedTronimoesServer) GetMoves

func (*UnimplementedTronimoesServer) GetOperation

func (*UnimplementedTronimoesServer) LayTile

Jump to

Keyboard shortcuts

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