Documentation ¶
Index ¶
- Variables
- func RegisterTheGameServer(s *grpc.Server, srv TheGameServer)
- type Ability
- type Bullet
- func (*Bullet) Descriptor() ([]byte, []int)
- func (m *Bullet) GetEntity() *Entity
- func (m *Bullet) GetOwner() int32
- func (*Bullet) ProtoMessage()
- func (m *Bullet) Reset()
- func (m *Bullet) String() string
- func (m *Bullet) XXX_DiscardUnknown()
- func (m *Bullet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bullet) XXX_Merge(src proto.Message)
- func (m *Bullet) XXX_Size() int
- func (m *Bullet) XXX_Unmarshal(b []byte) error
- type Command
- func (*Command) Descriptor() ([]byte, []int)
- func (m *Command) GetGameReset() bool
- func (m *Command) GetPause() bool
- func (m *Command) GetResume() bool
- func (m *Command) GetTick() bool
- func (m *Command) GetToken() string
- func (m *Command) GetWaitForControls() bool
- func (*Command) ProtoMessage()
- func (m *Command) Reset()
- func (m *Command) String() string
- func (m *Command) XXX_DiscardUnknown()
- func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Command) XXX_Merge(src proto.Message)
- func (m *Command) XXX_Size() int
- func (m *Command) XXX_Unmarshal(b []byte) error
- type CommandResponse
- func (*CommandResponse) Descriptor() ([]byte, []int)
- func (*CommandResponse) ProtoMessage()
- func (m *CommandResponse) Reset()
- func (m *CommandResponse) String() string
- func (m *CommandResponse) XXX_DiscardUnknown()
- func (m *CommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommandResponse) XXX_Merge(src proto.Message)
- func (m *CommandResponse) XXX_Size() int
- func (m *CommandResponse) XXX_Unmarshal(b []byte) error
- type Controls
- func (*Controls) Descriptor() ([]byte, []int)
- func (m *Controls) GetAccelerate() bool
- func (m *Controls) GetAccelerationDirection() float64
- func (m *Controls) GetLevelUp() []Ability
- func (m *Controls) GetName() string
- func (m *Controls) GetShoot() bool
- func (m *Controls) GetShootDirection() float64
- func (*Controls) ProtoMessage()
- func (m *Controls) Reset()
- func (m *Controls) String() string
- func (m *Controls) XXX_DiscardUnknown()
- func (m *Controls) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Controls) XXX_Merge(src proto.Message)
- func (m *Controls) XXX_Size() int
- func (m *Controls) XXX_Unmarshal(b []byte) error
- type Entity
- func (*Entity) Descriptor() ([]byte, []int)
- func (m *Entity) GetBodyDamage() int32
- func (m *Entity) GetHealth() int32
- func (m *Entity) GetId() int32
- func (m *Entity) GetMaxHealth() int32
- func (m *Entity) GetPosition() *Vector
- func (m *Entity) GetRadius() float64
- func (m *Entity) GetRewardingExperience() int32
- func (m *Entity) GetVelocity() *Vector
- func (*Entity) ProtoMessage()
- func (m *Entity) Reset()
- func (m *Entity) String() string
- func (m *Entity) XXX_DiscardUnknown()
- func (m *Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Entity) XXX_Merge(src proto.Message)
- func (m *Entity) XXX_Size() int
- func (m *Entity) XXX_Unmarshal(b []byte) error
- type GameState
- func (*GameState) Descriptor() ([]byte, []int)
- func (m *GameState) GetBullets() []*Bullet
- func (m *GameState) GetHeroes() []*Hero
- func (m *GameState) GetMeta() *GameState_Meta
- func (m *GameState) GetPolygons() []*Polygon
- func (*GameState) ProtoMessage()
- func (m *GameState) Reset()
- func (m *GameState) String() string
- func (m *GameState) XXX_DiscardUnknown()
- func (m *GameState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GameState) XXX_Merge(src proto.Message)
- func (m *GameState) XXX_Size() int
- func (m *GameState) XXX_Unmarshal(b []byte) error
- type GameState_Meta
- func (*GameState_Meta) Descriptor() ([]byte, []int)
- func (m *GameState_Meta) GetCenterPosition() *Vector
- func (m *GameState_Meta) GetHeroId() int32
- func (m *GameState_Meta) GetScores() []*ScoreEntry
- func (*GameState_Meta) ProtoMessage()
- func (m *GameState_Meta) Reset()
- func (m *GameState_Meta) String() string
- func (m *GameState_Meta) XXX_DiscardUnknown()
- func (m *GameState_Meta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GameState_Meta) XXX_Merge(src proto.Message)
- func (m *GameState_Meta) XXX_Size() int
- func (m *GameState_Meta) XXX_Unmarshal(b []byte) error
- type Hero
- func (*Hero) Descriptor() ([]byte, []int)
- func (m *Hero) GetAbilityLevels() []int32
- func (m *Hero) GetAbilityValues() []int32
- func (m *Hero) GetCooldown() int32
- func (m *Hero) GetEntity() *Entity
- func (m *Hero) GetExperience() int32
- func (m *Hero) GetExperienceToLevelUp() int32
- func (m *Hero) GetHealthRegenCooldown() int32
- func (m *Hero) GetLevel() int32
- func (m *Hero) GetName() string
- func (m *Hero) GetOrientation() float64
- func (m *Hero) GetScore() int32
- func (m *Hero) GetSkillPoints() int32
- func (*Hero) ProtoMessage()
- func (m *Hero) Reset()
- func (m *Hero) String() string
- func (m *Hero) XXX_DiscardUnknown()
- func (m *Hero) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Hero) XXX_Merge(src proto.Message)
- func (m *Hero) XXX_Size() int
- func (m *Hero) XXX_Unmarshal(b []byte) error
- type Polygon
- func (*Polygon) Descriptor() ([]byte, []int)
- func (m *Polygon) GetEdges() int32
- func (m *Polygon) GetEntity() *Entity
- func (*Polygon) ProtoMessage()
- func (m *Polygon) Reset()
- func (m *Polygon) String() string
- func (m *Polygon) XXX_DiscardUnknown()
- func (m *Polygon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Polygon) XXX_Merge(src proto.Message)
- func (m *Polygon) XXX_Size() int
- func (m *Polygon) XXX_Unmarshal(b []byte) error
- type ScoreEntry
- func (*ScoreEntry) Descriptor() ([]byte, []int)
- func (m *ScoreEntry) GetHeroId() int32
- func (m *ScoreEntry) GetHeroName() string
- func (m *ScoreEntry) GetLevel() int32
- func (m *ScoreEntry) GetScore() int32
- func (*ScoreEntry) ProtoMessage()
- func (m *ScoreEntry) Reset()
- func (m *ScoreEntry) String() string
- func (m *ScoreEntry) XXX_DiscardUnknown()
- func (m *ScoreEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ScoreEntry) XXX_Merge(src proto.Message)
- func (m *ScoreEntry) XXX_Size() int
- func (m *ScoreEntry) XXX_Unmarshal(b []byte) error
- type TheGameClient
- type TheGameServer
- type TheGame_GameClient
- type TheGame_GameServer
- type TheGame_ViewClient
- type TheGame_ViewServer
- type Vector
- func (*Vector) Descriptor() ([]byte, []int)
- func (m *Vector) GetX() float64
- func (m *Vector) GetY() float64
- func (*Vector) ProtoMessage()
- func (m *Vector) Reset()
- func (m *Vector) String() string
- func (m *Vector) XXX_DiscardUnknown()
- func (m *Vector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Vector) XXX_Merge(src proto.Message)
- func (m *Vector) XXX_Size() int
- func (m *Vector) XXX_Unmarshal(b []byte) error
- type ViewRequest
- func (*ViewRequest) Descriptor() ([]byte, []int)
- func (m *ViewRequest) GetToken() string
- func (*ViewRequest) ProtoMessage()
- func (m *ViewRequest) Reset()
- func (m *ViewRequest) String() string
- func (m *ViewRequest) XXX_DiscardUnknown()
- func (m *ViewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ViewRequest) XXX_Merge(src proto.Message)
- func (m *ViewRequest) XXX_Size() int
- func (m *ViewRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Ability_name = map[int32]string{
0: "health_regen",
1: "max_health",
2: "body_damage",
3: "bullet_speed",
4: "bullet_penetration",
5: "bullet_damage",
6: "bullet_reload",
7: "movement_speed",
}
View Source
var Ability_value = map[string]int32{
"health_regen": 0,
"max_health": 1,
"body_damage": 2,
"bullet_speed": 3,
"bullet_penetration": 4,
"bullet_damage": 5,
"bullet_reload": 6,
"movement_speed": 7,
}
Functions ¶
func RegisterTheGameServer ¶
func RegisterTheGameServer(s *grpc.Server, srv TheGameServer)
Types ¶
type Bullet ¶
type Bullet struct { Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` Owner int32 `protobuf:"varint,2,opt,name=owner,proto3" json:"owner,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Bullet) Descriptor ¶
func (*Bullet) ProtoMessage ¶
func (*Bullet) ProtoMessage()
func (*Bullet) XXX_DiscardUnknown ¶
func (m *Bullet) XXX_DiscardUnknown()
func (*Bullet) XXX_Marshal ¶
func (*Bullet) XXX_Unmarshal ¶
type Command ¶
type Command struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Resume bool `protobuf:"varint,2,opt,name=resume,proto3" json:"resume,omitempty"` Pause bool `protobuf:"varint,3,opt,name=pause,proto3" json:"pause,omitempty"` Tick bool `protobuf:"varint,4,opt,name=tick,proto3" json:"tick,omitempty"` GameReset bool `protobuf:"varint,5,opt,name=game_reset,json=gameReset,proto3" json:"game_reset,omitempty"` WaitForControls bool `protobuf:"varint,6,opt,name=wait_for_controls,json=waitForControls,proto3" json:"wait_for_controls,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Command) Descriptor ¶
func (*Command) GetGameReset ¶
func (*Command) GetWaitForControls ¶
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) XXX_DiscardUnknown ¶
func (m *Command) XXX_DiscardUnknown()
func (*Command) XXX_Marshal ¶
func (*Command) XXX_Unmarshal ¶
type CommandResponse ¶
type CommandResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CommandResponse) Descriptor ¶
func (*CommandResponse) Descriptor() ([]byte, []int)
func (*CommandResponse) ProtoMessage ¶
func (*CommandResponse) ProtoMessage()
func (*CommandResponse) Reset ¶
func (m *CommandResponse) Reset()
func (*CommandResponse) String ¶
func (m *CommandResponse) String() string
func (*CommandResponse) XXX_DiscardUnknown ¶
func (m *CommandResponse) XXX_DiscardUnknown()
func (*CommandResponse) XXX_Marshal ¶
func (m *CommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommandResponse) XXX_Merge ¶
func (m *CommandResponse) XXX_Merge(src proto.Message)
func (*CommandResponse) XXX_Size ¶
func (m *CommandResponse) XXX_Size() int
func (*CommandResponse) XXX_Unmarshal ¶
func (m *CommandResponse) XXX_Unmarshal(b []byte) error
type Controls ¶
type Controls struct { Accelerate bool `protobuf:"varint,1,opt,name=accelerate,proto3" json:"accelerate,omitempty"` AccelerationDirection float64 `` /* 126-byte string literal not displayed */ Shoot bool `protobuf:"varint,3,opt,name=shoot,proto3" json:"shoot,omitempty"` ShootDirection float64 `protobuf:"fixed64,4,opt,name=shoot_direction,json=shootDirection,proto3" json:"shoot_direction,omitempty"` LevelUp []Ability `protobuf:"varint,5,rep,packed,name=level_up,json=levelUp,proto3,enum=Ability" json:"level_up,omitempty"` Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Controls) Descriptor ¶
func (*Controls) GetAccelerate ¶
func (*Controls) GetAccelerationDirection ¶
func (*Controls) GetLevelUp ¶
func (*Controls) GetShootDirection ¶
func (*Controls) ProtoMessage ¶
func (*Controls) ProtoMessage()
func (*Controls) XXX_DiscardUnknown ¶
func (m *Controls) XXX_DiscardUnknown()
func (*Controls) XXX_Marshal ¶
func (*Controls) XXX_Unmarshal ¶
type Entity ¶
type Entity struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Position *Vector `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"` Radius float64 `protobuf:"fixed64,3,opt,name=radius,proto3" json:"radius,omitempty"` Velocity *Vector `protobuf:"bytes,4,opt,name=velocity,proto3" json:"velocity,omitempty"` Health int32 `protobuf:"varint,5,opt,name=health,proto3" json:"health,omitempty"` BodyDamage int32 `protobuf:"varint,6,opt,name=body_damage,json=bodyDamage,proto3" json:"body_damage,omitempty"` RewardingExperience int32 `protobuf:"varint,7,opt,name=rewarding_experience,json=rewardingExperience,proto3" json:"rewarding_experience,omitempty"` MaxHealth int32 `protobuf:"varint,8,opt,name=max_health,json=maxHealth,proto3" json:"max_health,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Entity) Descriptor ¶
func (*Entity) GetBodyDamage ¶
func (*Entity) GetMaxHealth ¶
func (*Entity) GetPosition ¶
func (*Entity) GetRewardingExperience ¶
func (*Entity) GetVelocity ¶
func (*Entity) ProtoMessage ¶
func (*Entity) ProtoMessage()
func (*Entity) XXX_DiscardUnknown ¶
func (m *Entity) XXX_DiscardUnknown()
func (*Entity) XXX_Marshal ¶
func (*Entity) XXX_Unmarshal ¶
type GameState ¶
type GameState struct { Meta *GameState_Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Polygons []*Polygon `protobuf:"bytes,2,rep,name=polygons,proto3" json:"polygons,omitempty"` Bullets []*Bullet `protobuf:"bytes,3,rep,name=bullets,proto3" json:"bullets,omitempty"` Heroes []*Hero `protobuf:"bytes,4,rep,name=heroes,proto3" json:"heroes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GameState) Descriptor ¶
func (*GameState) GetBullets ¶
func (*GameState) GetMeta ¶
func (m *GameState) GetMeta() *GameState_Meta
func (*GameState) GetPolygons ¶
func (*GameState) ProtoMessage ¶
func (*GameState) ProtoMessage()
func (*GameState) XXX_DiscardUnknown ¶
func (m *GameState) XXX_DiscardUnknown()
func (*GameState) XXX_Marshal ¶
func (*GameState) XXX_Unmarshal ¶
type GameState_Meta ¶
type GameState_Meta struct { HeroId int32 `protobuf:"varint,2,opt,name=hero_id,json=heroId,proto3" json:"hero_id,omitempty"` CenterPosition *Vector `protobuf:"bytes,5,opt,name=center_position,json=centerPosition,proto3" json:"center_position,omitempty"` Scores []*ScoreEntry `protobuf:"bytes,4,rep,name=scores,proto3" json:"scores,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GameState_Meta) Descriptor ¶
func (*GameState_Meta) Descriptor() ([]byte, []int)
func (*GameState_Meta) GetCenterPosition ¶
func (m *GameState_Meta) GetCenterPosition() *Vector
func (*GameState_Meta) GetHeroId ¶
func (m *GameState_Meta) GetHeroId() int32
func (*GameState_Meta) GetScores ¶
func (m *GameState_Meta) GetScores() []*ScoreEntry
func (*GameState_Meta) ProtoMessage ¶
func (*GameState_Meta) ProtoMessage()
func (*GameState_Meta) Reset ¶
func (m *GameState_Meta) Reset()
func (*GameState_Meta) String ¶
func (m *GameState_Meta) String() string
func (*GameState_Meta) XXX_DiscardUnknown ¶
func (m *GameState_Meta) XXX_DiscardUnknown()
func (*GameState_Meta) XXX_Marshal ¶
func (m *GameState_Meta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GameState_Meta) XXX_Merge ¶
func (m *GameState_Meta) XXX_Merge(src proto.Message)
func (*GameState_Meta) XXX_Size ¶
func (m *GameState_Meta) XXX_Size() int
func (*GameState_Meta) XXX_Unmarshal ¶
func (m *GameState_Meta) XXX_Unmarshal(b []byte) error
type Hero ¶
type Hero struct { Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` AbilityLevels []int32 `protobuf:"varint,2,rep,packed,name=ability_levels,json=abilityLevels,proto3" json:"ability_levels,omitempty"` AbilityValues []int32 `protobuf:"varint,3,rep,packed,name=ability_values,json=abilityValues,proto3" json:"ability_values,omitempty"` SkillPoints int32 `protobuf:"varint,4,opt,name=skill_points,json=skillPoints,proto3" json:"skill_points,omitempty"` Orientation float64 `protobuf:"fixed64,5,opt,name=orientation,proto3" json:"orientation,omitempty"` Level int32 `protobuf:"varint,6,opt,name=level,proto3" json:"level,omitempty"` Score int32 `protobuf:"varint,7,opt,name=score,proto3" json:"score,omitempty"` Experience int32 `protobuf:"varint,8,opt,name=experience,proto3" json:"experience,omitempty"` ExperienceToLevelUp int32 `protobuf:"varint,9,opt,name=experience_to_level_up,json=experienceToLevelUp,proto3" json:"experience_to_level_up,omitempty"` Cooldown int32 `protobuf:"varint,10,opt,name=cooldown,proto3" json:"cooldown,omitempty"` HealthRegenCooldown int32 `protobuf:"varint,11,opt,name=health_regen_cooldown,json=healthRegenCooldown,proto3" json:"health_regen_cooldown,omitempty"` Name string `protobuf:"bytes,12,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Hero) Descriptor ¶
func (*Hero) GetAbilityLevels ¶
func (*Hero) GetAbilityValues ¶
func (*Hero) GetCooldown ¶
func (*Hero) GetExperience ¶
func (*Hero) GetExperienceToLevelUp ¶
func (*Hero) GetHealthRegenCooldown ¶
func (*Hero) GetOrientation ¶
func (*Hero) GetSkillPoints ¶
func (*Hero) ProtoMessage ¶
func (*Hero) ProtoMessage()
func (*Hero) XXX_DiscardUnknown ¶
func (m *Hero) XXX_DiscardUnknown()
func (*Hero) XXX_Unmarshal ¶
type Polygon ¶
type Polygon struct { Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` Edges int32 `protobuf:"varint,2,opt,name=edges,proto3" json:"edges,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Polygon) Descriptor ¶
func (*Polygon) ProtoMessage ¶
func (*Polygon) ProtoMessage()
func (*Polygon) XXX_DiscardUnknown ¶
func (m *Polygon) XXX_DiscardUnknown()
func (*Polygon) XXX_Marshal ¶
func (*Polygon) XXX_Unmarshal ¶
type ScoreEntry ¶
type ScoreEntry struct { HeroId int32 `protobuf:"varint,1,opt,name=hero_id,json=heroId,proto3" json:"hero_id,omitempty"` HeroName string `protobuf:"bytes,2,opt,name=hero_name,json=heroName,proto3" json:"hero_name,omitempty"` Score int32 `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty"` Level int32 `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ScoreEntry) Descriptor ¶
func (*ScoreEntry) Descriptor() ([]byte, []int)
func (*ScoreEntry) GetHeroId ¶
func (m *ScoreEntry) GetHeroId() int32
func (*ScoreEntry) GetHeroName ¶
func (m *ScoreEntry) GetHeroName() string
func (*ScoreEntry) GetLevel ¶
func (m *ScoreEntry) GetLevel() int32
func (*ScoreEntry) GetScore ¶
func (m *ScoreEntry) GetScore() int32
func (*ScoreEntry) ProtoMessage ¶
func (*ScoreEntry) ProtoMessage()
func (*ScoreEntry) Reset ¶
func (m *ScoreEntry) Reset()
func (*ScoreEntry) String ¶
func (m *ScoreEntry) String() string
func (*ScoreEntry) XXX_DiscardUnknown ¶
func (m *ScoreEntry) XXX_DiscardUnknown()
func (*ScoreEntry) XXX_Marshal ¶
func (m *ScoreEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ScoreEntry) XXX_Merge ¶
func (m *ScoreEntry) XXX_Merge(src proto.Message)
func (*ScoreEntry) XXX_Size ¶
func (m *ScoreEntry) XXX_Size() int
func (*ScoreEntry) XXX_Unmarshal ¶
func (m *ScoreEntry) XXX_Unmarshal(b []byte) error
type TheGameClient ¶
type TheGameClient interface { Game(ctx context.Context, opts ...grpc.CallOption) (TheGame_GameClient, error) View(ctx context.Context, in *ViewRequest, opts ...grpc.CallOption) (TheGame_ViewClient, error) Admin(ctx context.Context, in *Command, opts ...grpc.CallOption) (*CommandResponse, error) }
TheGameClient is the client API for TheGame service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTheGameClient ¶
func NewTheGameClient(cc *grpc.ClientConn) TheGameClient
type TheGameServer ¶
type TheGameServer interface { Game(TheGame_GameServer) error View(*ViewRequest, TheGame_ViewServer) error Admin(context.Context, *Command) (*CommandResponse, error) }
TheGameServer is the server API for TheGame service.
type TheGame_GameClient ¶
type TheGame_GameServer ¶
type TheGame_ViewClient ¶
type TheGame_ViewClient interface { Recv() (*GameState, error) grpc.ClientStream }
type TheGame_ViewServer ¶
type TheGame_ViewServer interface { Send(*GameState) error grpc.ServerStream }
type Vector ¶
type Vector struct { X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"` Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Vector) Descriptor ¶
func (*Vector) ProtoMessage ¶
func (*Vector) ProtoMessage()
func (*Vector) XXX_DiscardUnknown ¶
func (m *Vector) XXX_DiscardUnknown()
func (*Vector) XXX_Marshal ¶
func (*Vector) XXX_Unmarshal ¶
type ViewRequest ¶
type ViewRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ViewRequest) Descriptor ¶
func (*ViewRequest) Descriptor() ([]byte, []int)
func (*ViewRequest) GetToken ¶
func (m *ViewRequest) GetToken() string
func (*ViewRequest) ProtoMessage ¶
func (*ViewRequest) ProtoMessage()
func (*ViewRequest) Reset ¶
func (m *ViewRequest) Reset()
func (*ViewRequest) String ¶
func (m *ViewRequest) String() string
func (*ViewRequest) XXX_DiscardUnknown ¶
func (m *ViewRequest) XXX_DiscardUnknown()
func (*ViewRequest) XXX_Marshal ¶
func (m *ViewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ViewRequest) XXX_Merge ¶
func (m *ViewRequest) XXX_Merge(src proto.Message)
func (*ViewRequest) XXX_Size ¶
func (m *ViewRequest) XXX_Size() int
func (*ViewRequest) XXX_Unmarshal ¶
func (m *ViewRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.