Documentation ¶
Index ¶
- func RegisterBallServiceServer(s *grpc.Server, srv BallServiceServer)
- func RegisterPedalServiceServer(s *grpc.Server, srv PedalServiceServer)
- type Ball
- func (*Ball) Descriptor() ([]byte, []int)
- func (m *Ball) GetR() int64
- func (m *Ball) GetX() int64
- func (m *Ball) GetY() int64
- func (*Ball) ProtoMessage()
- func (m *Ball) Reset()
- func (m *Ball) String() string
- func (m *Ball) XXX_DiscardUnknown()
- func (m *Ball) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ball) XXX_Merge(src proto.Message)
- func (m *Ball) XXX_Size() int
- func (m *Ball) XXX_Unmarshal(b []byte) error
- type BallServiceClient
- type BallServiceServer
- type BallService_MoveClient
- type BallService_MoveServer
- type MoveBall
- func (*MoveBall) Descriptor() ([]byte, []int)
- func (m *MoveBall) GetBall() *Ball
- func (*MoveBall) ProtoMessage()
- func (m *MoveBall) Reset()
- func (m *MoveBall) String() string
- func (m *MoveBall) XXX_DiscardUnknown()
- func (m *MoveBall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MoveBall) XXX_Merge(src proto.Message)
- func (m *MoveBall) XXX_Size() int
- func (m *MoveBall) XXX_Unmarshal(b []byte) error
- type MovePedal
- func (*MovePedal) Descriptor() ([]byte, []int)
- func (m *MovePedal) GetPedal() *Pedal
- func (*MovePedal) ProtoMessage()
- func (m *MovePedal) Reset()
- func (m *MovePedal) String() string
- func (m *MovePedal) XXX_DiscardUnknown()
- func (m *MovePedal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MovePedal) XXX_Merge(src proto.Message)
- func (m *MovePedal) XXX_Size() int
- func (m *MovePedal) XXX_Unmarshal(b []byte) error
- type Pedal
- func (*Pedal) Descriptor() ([]byte, []int)
- func (m *Pedal) GetH() int64
- func (m *Pedal) GetW() int64
- func (m *Pedal) GetX() int64
- func (m *Pedal) GetY() int64
- func (*Pedal) ProtoMessage()
- func (m *Pedal) Reset()
- func (m *Pedal) String() string
- func (m *Pedal) XXX_DiscardUnknown()
- func (m *Pedal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pedal) XXX_Merge(src proto.Message)
- func (m *Pedal) XXX_Size() int
- func (m *Pedal) XXX_Unmarshal(b []byte) error
- type PedalServiceClient
- type PedalServiceServer
- type PedalService_MoveClient
- type PedalService_MoveServer
- type UnimplementedBallServiceServer
- type UnimplementedPedalServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBallServiceServer ¶
func RegisterBallServiceServer(s *grpc.Server, srv BallServiceServer)
func RegisterPedalServiceServer ¶
func RegisterPedalServiceServer(s *grpc.Server, srv PedalServiceServer)
Types ¶
type Ball ¶
type Ball struct { X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` Y int64 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` R int64 `protobuf:"varint,3,opt,name=r,proto3" json:"r,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Ball) Descriptor ¶
func (*Ball) ProtoMessage ¶
func (*Ball) ProtoMessage()
func (*Ball) XXX_DiscardUnknown ¶
func (m *Ball) XXX_DiscardUnknown()
func (*Ball) XXX_Unmarshal ¶
type BallServiceClient ¶
type BallServiceClient interface {
Move(ctx context.Context, opts ...grpc.CallOption) (BallService_MoveClient, error)
}
BallServiceClient is the client API for BallService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBallServiceClient ¶
func NewBallServiceClient(cc *grpc.ClientConn) BallServiceClient
type BallServiceServer ¶
type BallServiceServer interface {
Move(BallService_MoveServer) error
}
BallServiceServer is the server API for BallService service.
type BallService_MoveClient ¶
type BallService_MoveServer ¶
type MoveBall ¶
type MoveBall struct { Ball *Ball `protobuf:"bytes,1,opt,name=ball,proto3" json:"ball,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MoveBall) Descriptor ¶
func (*MoveBall) ProtoMessage ¶
func (*MoveBall) ProtoMessage()
func (*MoveBall) XXX_DiscardUnknown ¶
func (m *MoveBall) XXX_DiscardUnknown()
func (*MoveBall) XXX_Marshal ¶
func (*MoveBall) XXX_Unmarshal ¶
type MovePedal ¶
type MovePedal struct { Pedal *Pedal `protobuf:"bytes,1,opt,name=pedal,proto3" json:"pedal,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MovePedal) Descriptor ¶
func (*MovePedal) ProtoMessage ¶
func (*MovePedal) ProtoMessage()
func (*MovePedal) XXX_DiscardUnknown ¶
func (m *MovePedal) XXX_DiscardUnknown()
func (*MovePedal) XXX_Marshal ¶
func (*MovePedal) XXX_Unmarshal ¶
type Pedal ¶
type Pedal struct { X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` Y int64 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` W int64 `protobuf:"varint,3,opt,name=w,proto3" json:"w,omitempty"` H int64 `protobuf:"varint,4,opt,name=h,proto3" json:"h,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Pedal) Descriptor ¶
func (*Pedal) ProtoMessage ¶
func (*Pedal) ProtoMessage()
func (*Pedal) XXX_DiscardUnknown ¶
func (m *Pedal) XXX_DiscardUnknown()
func (*Pedal) XXX_Marshal ¶
func (*Pedal) XXX_Unmarshal ¶
type PedalServiceClient ¶
type PedalServiceClient interface {
Move(ctx context.Context, opts ...grpc.CallOption) (PedalService_MoveClient, error)
}
PedalServiceClient is the client API for PedalService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPedalServiceClient ¶
func NewPedalServiceClient(cc *grpc.ClientConn) PedalServiceClient
type PedalServiceServer ¶
type PedalServiceServer interface {
Move(PedalService_MoveServer) error
}
PedalServiceServer is the server API for PedalService service.
type PedalService_MoveClient ¶
type PedalService_MoveServer ¶
type UnimplementedBallServiceServer ¶
type UnimplementedBallServiceServer struct { }
UnimplementedBallServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedBallServiceServer) Move ¶
func (*UnimplementedBallServiceServer) Move(srv BallService_MoveServer) error
type UnimplementedPedalServiceServer ¶
type UnimplementedPedalServiceServer struct { }
UnimplementedPedalServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedPedalServiceServer) Move ¶
func (*UnimplementedPedalServiceServer) Move(srv PedalService_MoveServer) error