Documentation ¶
Index ¶
- Variables
- func RegisterLevelServer(s grpc.ServiceRegistrar, srv LevelServer)
- type CreateLevelRequest
- func (*CreateLevelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLevelRequest) GetData() []byte
- func (x *CreateLevelRequest) GetName() string
- func (*CreateLevelRequest) ProtoMessage()
- func (x *CreateLevelRequest) ProtoReflect() protoreflect.Message
- func (x *CreateLevelRequest) Reset()
- func (x *CreateLevelRequest) String() string
- type LevelClient
- type LevelServer
- type Level_ListLevelsClient
- type Level_ListLevelsServer
- type ListLevelsRequest
- type UnimplementedLevelServer
- type UnsafeLevelServer
Constants ¶
This section is empty.
Variables ¶
var File_Level_proto protoreflect.FileDescriptor
var Level_ServiceDesc = grpc.ServiceDesc{ ServiceName: "level.level", HandlerType: (*LevelServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UploadLevel", Handler: _Level_UploadLevel_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ListLevels", Handler: _Level_ListLevels_Handler, ServerStreams: true, }, }, Metadata: "Level.proto", }
Level_ServiceDesc is the grpc.ServiceDesc for Level service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLevelServer ¶
func RegisterLevelServer(s grpc.ServiceRegistrar, srv LevelServer)
Types ¶
type CreateLevelRequest ¶
type CreateLevelRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CreateLevelRequest) Descriptor
deprecated
func (*CreateLevelRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateLevelRequest.ProtoReflect.Descriptor instead.
func (*CreateLevelRequest) GetData ¶
func (x *CreateLevelRequest) GetData() []byte
func (*CreateLevelRequest) GetName ¶
func (x *CreateLevelRequest) GetName() string
func (*CreateLevelRequest) ProtoMessage ¶
func (*CreateLevelRequest) ProtoMessage()
func (*CreateLevelRequest) ProtoReflect ¶
func (x *CreateLevelRequest) ProtoReflect() protoreflect.Message
func (*CreateLevelRequest) Reset ¶
func (x *CreateLevelRequest) Reset()
func (*CreateLevelRequest) String ¶
func (x *CreateLevelRequest) String() string
type LevelClient ¶
type LevelClient interface { UploadLevel(ctx context.Context, in *CreateLevelRequest, opts ...grpc.CallOption) (*proto.LevelProjection, error) ListLevels(ctx context.Context, in *ListLevelsRequest, opts ...grpc.CallOption) (Level_ListLevelsClient, error) }
LevelClient is the client API for Level service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLevelClient ¶
func NewLevelClient(cc grpc.ClientConnInterface) LevelClient
type LevelServer ¶
type LevelServer interface { UploadLevel(context.Context, *CreateLevelRequest) (*proto.LevelProjection, error) ListLevels(*ListLevelsRequest, Level_ListLevelsServer) error // contains filtered or unexported methods }
LevelServer is the server API for Level service. All implementations must embed UnimplementedLevelServer for forward compatibility
type Level_ListLevelsClient ¶
type Level_ListLevelsClient interface { Recv() (*proto.LevelProjection, error) grpc.ClientStream }
type Level_ListLevelsServer ¶
type Level_ListLevelsServer interface { Send(*proto.LevelProjection) error grpc.ServerStream }
type ListLevelsRequest ¶
type ListLevelsRequest struct {
// contains filtered or unexported fields
}
func (*ListLevelsRequest) Descriptor
deprecated
func (*ListLevelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListLevelsRequest.ProtoReflect.Descriptor instead.
func (*ListLevelsRequest) ProtoMessage ¶
func (*ListLevelsRequest) ProtoMessage()
func (*ListLevelsRequest) ProtoReflect ¶
func (x *ListLevelsRequest) ProtoReflect() protoreflect.Message
func (*ListLevelsRequest) Reset ¶
func (x *ListLevelsRequest) Reset()
func (*ListLevelsRequest) String ¶
func (x *ListLevelsRequest) String() string
type UnimplementedLevelServer ¶
type UnimplementedLevelServer struct { }
UnimplementedLevelServer must be embedded to have forward compatible implementations.
func (UnimplementedLevelServer) ListLevels ¶
func (UnimplementedLevelServer) ListLevels(*ListLevelsRequest, Level_ListLevelsServer) error
func (UnimplementedLevelServer) UploadLevel ¶
func (UnimplementedLevelServer) UploadLevel(context.Context, *CreateLevelRequest) (*proto.LevelProjection, error)
type UnsafeLevelServer ¶
type UnsafeLevelServer interface {
// contains filtered or unexported methods
}
UnsafeLevelServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LevelServer will result in compilation errors.