Documentation ¶
Index ¶
- func RegisterDiscoveryServer(s *grpc.Server, srv DiscoveryServer)
- type DiscoveryClient
- type DiscoveryServer
- type Discovery_EventsClient
- type Discovery_EventsServer
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetGameID() string
- func (m *Event) GetName() string
- func (m *Event) GetPlayers() []*Player
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type Player
- func (*Player) Descriptor() ([]byte, []int)
- func (m *Player) GetId() int32
- func (m *Player) GetIp() string
- func (m *Player) GetPlayers() int32
- func (m *Player) GetPod() string
- func (m *Player) GetPort() int32
- func (*Player) ProtoMessage()
- func (m *Player) Reset()
- func (m *Player) String() string
- func (m *Player) XXX_DiscardUnknown()
- func (m *Player) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Player) XXX_Merge(src proto.Message)
- func (m *Player) XXX_Size() int
- func (m *Player) XXX_Unmarshal(b []byte) error
- type UnimplementedDiscoveryServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDiscoveryServer ¶
func RegisterDiscoveryServer(s *grpc.Server, srv DiscoveryServer)
Types ¶
type DiscoveryClient ¶
type DiscoveryClient interface {
Events(ctx context.Context, opts ...grpc.CallOption) (Discovery_EventsClient, error)
}
DiscoveryClient is the client API for Discovery service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDiscoveryClient ¶
func NewDiscoveryClient(cc *grpc.ClientConn) DiscoveryClient
type DiscoveryServer ¶
type DiscoveryServer interface {
Events(Discovery_EventsServer) error
}
DiscoveryServer is the server API for Discovery service.
type Discovery_EventsClient ¶
type Discovery_EventsServer ¶
type Event ¶
type Event struct { GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"` Players []*Player `protobuf:"bytes,2,rep,name=players,proto3" json:"players,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Event) Descriptor ¶
func (*Event) GetPlayers ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type Player ¶
type Player struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Players int32 `protobuf:"varint,2,opt,name=players,proto3" json:"players,omitempty"` Pod string `protobuf:"bytes,3,opt,name=pod,proto3" json:"pod,omitempty"` Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` Port int32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Player) Descriptor ¶
func (*Player) GetPlayers ¶
func (*Player) ProtoMessage ¶
func (*Player) ProtoMessage()
func (*Player) XXX_DiscardUnknown ¶
func (m *Player) XXX_DiscardUnknown()
func (*Player) XXX_Marshal ¶
func (*Player) XXX_Unmarshal ¶
type UnimplementedDiscoveryServer ¶
type UnimplementedDiscoveryServer struct { }
UnimplementedDiscoveryServer can be embedded to have forward compatible implementations.
func (*UnimplementedDiscoveryServer) Events ¶
func (*UnimplementedDiscoveryServer) Events(srv Discovery_EventsServer) error
Click to show internal directories.
Click to hide internal directories.