protobuf

package
v0.0.0-...-668c111 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Ball) GetR

func (m *Ball) GetR() int64

func (*Ball) GetX

func (m *Ball) GetX() int64

func (*Ball) GetY

func (m *Ball) GetY() int64

func (*Ball) ProtoMessage

func (*Ball) ProtoMessage()

func (*Ball) Reset

func (m *Ball) Reset()

func (*Ball) String

func (m *Ball) String() string

func (*Ball) XXX_DiscardUnknown

func (m *Ball) XXX_DiscardUnknown()

func (*Ball) XXX_Marshal

func (m *Ball) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ball) XXX_Merge

func (m *Ball) XXX_Merge(src proto.Message)

func (*Ball) XXX_Size

func (m *Ball) XXX_Size() int

func (*Ball) XXX_Unmarshal

func (m *Ball) XXX_Unmarshal(b []byte) error

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_MoveClient interface {
	Send(*MoveBall) error
	Recv() (*MoveBall, error)
	grpc.ClientStream
}

type BallService_MoveServer

type BallService_MoveServer interface {
	Send(*MoveBall) error
	Recv() (*MoveBall, error)
	grpc.ServerStream
}

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) Descriptor() ([]byte, []int)

func (*MoveBall) GetBall

func (m *MoveBall) GetBall() *Ball

func (*MoveBall) ProtoMessage

func (*MoveBall) ProtoMessage()

func (*MoveBall) Reset

func (m *MoveBall) Reset()

func (*MoveBall) String

func (m *MoveBall) String() string

func (*MoveBall) XXX_DiscardUnknown

func (m *MoveBall) XXX_DiscardUnknown()

func (*MoveBall) XXX_Marshal

func (m *MoveBall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MoveBall) XXX_Merge

func (m *MoveBall) XXX_Merge(src proto.Message)

func (*MoveBall) XXX_Size

func (m *MoveBall) XXX_Size() int

func (*MoveBall) XXX_Unmarshal

func (m *MoveBall) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*MovePedal) GetPedal

func (m *MovePedal) GetPedal() *Pedal

func (*MovePedal) ProtoMessage

func (*MovePedal) ProtoMessage()

func (*MovePedal) Reset

func (m *MovePedal) Reset()

func (*MovePedal) String

func (m *MovePedal) String() string

func (*MovePedal) XXX_DiscardUnknown

func (m *MovePedal) XXX_DiscardUnknown()

func (*MovePedal) XXX_Marshal

func (m *MovePedal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MovePedal) XXX_Merge

func (m *MovePedal) XXX_Merge(src proto.Message)

func (*MovePedal) XXX_Size

func (m *MovePedal) XXX_Size() int

func (*MovePedal) XXX_Unmarshal

func (m *MovePedal) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Pedal) GetH

func (m *Pedal) GetH() int64

func (*Pedal) GetW

func (m *Pedal) GetW() int64

func (*Pedal) GetX

func (m *Pedal) GetX() int64

func (*Pedal) GetY

func (m *Pedal) GetY() int64

func (*Pedal) ProtoMessage

func (*Pedal) ProtoMessage()

func (*Pedal) Reset

func (m *Pedal) Reset()

func (*Pedal) String

func (m *Pedal) String() string

func (*Pedal) XXX_DiscardUnknown

func (m *Pedal) XXX_DiscardUnknown()

func (*Pedal) XXX_Marshal

func (m *Pedal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pedal) XXX_Merge

func (m *Pedal) XXX_Merge(src proto.Message)

func (*Pedal) XXX_Size

func (m *Pedal) XXX_Size() int

func (*Pedal) XXX_Unmarshal

func (m *Pedal) XXX_Unmarshal(b []byte) error

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_MoveClient interface {
	Send(*MovePedal) error
	Recv() (*MovePedal, error)
	grpc.ClientStream
}

type PedalService_MoveServer

type PedalService_MoveServer interface {
	Send(*MovePedal) error
	Recv() (*MovePedal, error)
	grpc.ServerStream
}

type UnimplementedBallServiceServer

type UnimplementedBallServiceServer struct {
}

UnimplementedBallServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedBallServiceServer) Move

type UnimplementedPedalServiceServer

type UnimplementedPedalServiceServer struct {
}

UnimplementedPedalServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedPedalServiceServer) Move

Jump to

Keyboard shortcuts

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