Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterWearableServiceServer(s grpc.ServiceRegistrar, srv WearableServiceServer)
- type BeatsPerMinuteRequest
- func (*BeatsPerMinuteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BeatsPerMinuteRequest) GetUuid() string
- func (*BeatsPerMinuteRequest) ProtoMessage()
- func (x *BeatsPerMinuteRequest) ProtoReflect() protoreflect.Message
- func (x *BeatsPerMinuteRequest) Reset()
- func (x *BeatsPerMinuteRequest) String() string
- type BeatsPerMinuteResponse
- func (*BeatsPerMinuteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BeatsPerMinuteResponse) GetMinute() uint32
- func (x *BeatsPerMinuteResponse) GetValue() uint32
- func (*BeatsPerMinuteResponse) ProtoMessage()
- func (x *BeatsPerMinuteResponse) ProtoReflect() protoreflect.Message
- func (x *BeatsPerMinuteResponse) Reset()
- func (x *BeatsPerMinuteResponse) String() string
- type CalculateBeatsPerMinuteRequest
- func (*CalculateBeatsPerMinuteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CalculateBeatsPerMinuteRequest) GetMinute() uint32
- func (x *CalculateBeatsPerMinuteRequest) GetUuid() string
- func (x *CalculateBeatsPerMinuteRequest) GetValue() uint32
- func (*CalculateBeatsPerMinuteRequest) ProtoMessage()
- func (x *CalculateBeatsPerMinuteRequest) ProtoReflect() protoreflect.Message
- func (x *CalculateBeatsPerMinuteRequest) Reset()
- func (x *CalculateBeatsPerMinuteRequest) String() string
- type CalculateBeatsPerMinuteResponse
- func (*CalculateBeatsPerMinuteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CalculateBeatsPerMinuteResponse) GetAverage() float32
- func (*CalculateBeatsPerMinuteResponse) ProtoMessage()
- func (x *CalculateBeatsPerMinuteResponse) ProtoReflect() protoreflect.Message
- func (x *CalculateBeatsPerMinuteResponse) Reset()
- func (x *CalculateBeatsPerMinuteResponse) String() string
- type ConsumeBeatsPerMinuteRequest
- func (*ConsumeBeatsPerMinuteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConsumeBeatsPerMinuteRequest) GetMinute() uint32
- func (x *ConsumeBeatsPerMinuteRequest) GetUuid() string
- func (x *ConsumeBeatsPerMinuteRequest) GetValue() uint32
- func (*ConsumeBeatsPerMinuteRequest) ProtoMessage()
- func (x *ConsumeBeatsPerMinuteRequest) ProtoReflect() protoreflect.Message
- func (x *ConsumeBeatsPerMinuteRequest) Reset()
- func (x *ConsumeBeatsPerMinuteRequest) String() string
- type ConsumeBeatsPerMinuteResponse
- func (*ConsumeBeatsPerMinuteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ConsumeBeatsPerMinuteResponse) GetTotal() uint32
- func (*ConsumeBeatsPerMinuteResponse) ProtoMessage()
- func (x *ConsumeBeatsPerMinuteResponse) ProtoReflect() protoreflect.Message
- func (x *ConsumeBeatsPerMinuteResponse) Reset()
- func (x *ConsumeBeatsPerMinuteResponse) String() string
- type UnimplementedWearableServiceServer
- type UnsafeWearableServiceServer
- type WearableServiceClient
- type WearableServiceServer
- type WearableService_BeatsPerMinuteClient
- type WearableService_BeatsPerMinuteServer
- type WearableService_CalculateBeatsPerMinuteClient
- type WearableService_CalculateBeatsPerMinuteServer
- type WearableService_ConsumeBeatsPerMinuteClient
- type WearableService_ConsumeBeatsPerMinuteServer
Constants ¶
const ( WearableService_BeatsPerMinute_FullMethodName = "/wearable.v1.WearableService/BeatsPerMinute" WearableService_ConsumeBeatsPerMinute_FullMethodName = "/wearable.v1.WearableService/ConsumeBeatsPerMinute" WearableService_CalculateBeatsPerMinute_FullMethodName = "/wearable.v1.WearableService/CalculateBeatsPerMinute" )
Variables ¶
var File_wearable_v1_wearable_service_proto protoreflect.FileDescriptor
var WearableService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wearable.v1.WearableService", HandlerType: (*WearableServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "BeatsPerMinute", Handler: _WearableService_BeatsPerMinute_Handler, ServerStreams: true, }, { StreamName: "ConsumeBeatsPerMinute", Handler: _WearableService_ConsumeBeatsPerMinute_Handler, ClientStreams: true, }, { StreamName: "CalculateBeatsPerMinute", Handler: _WearableService_CalculateBeatsPerMinute_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "wearable/v1/wearable_service.proto", }
WearableService_ServiceDesc is the grpc.ServiceDesc for WearableService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWearableServiceServer ¶
func RegisterWearableServiceServer(s grpc.ServiceRegistrar, srv WearableServiceServer)
Types ¶
type BeatsPerMinuteRequest ¶
type BeatsPerMinuteRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*BeatsPerMinuteRequest) Descriptor
deprecated
func (*BeatsPerMinuteRequest) Descriptor() ([]byte, []int)
Deprecated: Use BeatsPerMinuteRequest.ProtoReflect.Descriptor instead.
func (*BeatsPerMinuteRequest) GetUuid ¶
func (x *BeatsPerMinuteRequest) GetUuid() string
func (*BeatsPerMinuteRequest) ProtoMessage ¶
func (*BeatsPerMinuteRequest) ProtoMessage()
func (*BeatsPerMinuteRequest) ProtoReflect ¶
func (x *BeatsPerMinuteRequest) ProtoReflect() protoreflect.Message
func (*BeatsPerMinuteRequest) Reset ¶
func (x *BeatsPerMinuteRequest) Reset()
func (*BeatsPerMinuteRequest) String ¶
func (x *BeatsPerMinuteRequest) String() string
type BeatsPerMinuteResponse ¶
type BeatsPerMinuteResponse struct { Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` Minute uint32 `protobuf:"varint,2,opt,name=minute,proto3" json:"minute,omitempty"` // contains filtered or unexported fields }
func (*BeatsPerMinuteResponse) Descriptor
deprecated
func (*BeatsPerMinuteResponse) Descriptor() ([]byte, []int)
Deprecated: Use BeatsPerMinuteResponse.ProtoReflect.Descriptor instead.
func (*BeatsPerMinuteResponse) GetMinute ¶
func (x *BeatsPerMinuteResponse) GetMinute() uint32
func (*BeatsPerMinuteResponse) GetValue ¶
func (x *BeatsPerMinuteResponse) GetValue() uint32
func (*BeatsPerMinuteResponse) ProtoMessage ¶
func (*BeatsPerMinuteResponse) ProtoMessage()
func (*BeatsPerMinuteResponse) ProtoReflect ¶
func (x *BeatsPerMinuteResponse) ProtoReflect() protoreflect.Message
func (*BeatsPerMinuteResponse) Reset ¶
func (x *BeatsPerMinuteResponse) Reset()
func (*BeatsPerMinuteResponse) String ¶
func (x *BeatsPerMinuteResponse) String() string
type CalculateBeatsPerMinuteRequest ¶
type CalculateBeatsPerMinuteRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Value uint32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` Minute uint32 `protobuf:"varint,3,opt,name=minute,proto3" json:"minute,omitempty"` // contains filtered or unexported fields }
func (*CalculateBeatsPerMinuteRequest) Descriptor
deprecated
func (*CalculateBeatsPerMinuteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CalculateBeatsPerMinuteRequest.ProtoReflect.Descriptor instead.
func (*CalculateBeatsPerMinuteRequest) GetMinute ¶
func (x *CalculateBeatsPerMinuteRequest) GetMinute() uint32
func (*CalculateBeatsPerMinuteRequest) GetUuid ¶
func (x *CalculateBeatsPerMinuteRequest) GetUuid() string
func (*CalculateBeatsPerMinuteRequest) GetValue ¶
func (x *CalculateBeatsPerMinuteRequest) GetValue() uint32
func (*CalculateBeatsPerMinuteRequest) ProtoMessage ¶
func (*CalculateBeatsPerMinuteRequest) ProtoMessage()
func (*CalculateBeatsPerMinuteRequest) ProtoReflect ¶
func (x *CalculateBeatsPerMinuteRequest) ProtoReflect() protoreflect.Message
func (*CalculateBeatsPerMinuteRequest) Reset ¶
func (x *CalculateBeatsPerMinuteRequest) Reset()
func (*CalculateBeatsPerMinuteRequest) String ¶
func (x *CalculateBeatsPerMinuteRequest) String() string
type CalculateBeatsPerMinuteResponse ¶
type CalculateBeatsPerMinuteResponse struct { Average float32 `protobuf:"fixed32,1,opt,name=average,proto3" json:"average,omitempty"` // contains filtered or unexported fields }
func (*CalculateBeatsPerMinuteResponse) Descriptor
deprecated
func (*CalculateBeatsPerMinuteResponse) Descriptor() ([]byte, []int)
Deprecated: Use CalculateBeatsPerMinuteResponse.ProtoReflect.Descriptor instead.
func (*CalculateBeatsPerMinuteResponse) GetAverage ¶
func (x *CalculateBeatsPerMinuteResponse) GetAverage() float32
func (*CalculateBeatsPerMinuteResponse) ProtoMessage ¶
func (*CalculateBeatsPerMinuteResponse) ProtoMessage()
func (*CalculateBeatsPerMinuteResponse) ProtoReflect ¶
func (x *CalculateBeatsPerMinuteResponse) ProtoReflect() protoreflect.Message
func (*CalculateBeatsPerMinuteResponse) Reset ¶
func (x *CalculateBeatsPerMinuteResponse) Reset()
func (*CalculateBeatsPerMinuteResponse) String ¶
func (x *CalculateBeatsPerMinuteResponse) String() string
type ConsumeBeatsPerMinuteRequest ¶
type ConsumeBeatsPerMinuteRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Value uint32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` Minute uint32 `protobuf:"varint,3,opt,name=minute,proto3" json:"minute,omitempty"` // contains filtered or unexported fields }
func (*ConsumeBeatsPerMinuteRequest) Descriptor
deprecated
func (*ConsumeBeatsPerMinuteRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConsumeBeatsPerMinuteRequest.ProtoReflect.Descriptor instead.
func (*ConsumeBeatsPerMinuteRequest) GetMinute ¶
func (x *ConsumeBeatsPerMinuteRequest) GetMinute() uint32
func (*ConsumeBeatsPerMinuteRequest) GetUuid ¶
func (x *ConsumeBeatsPerMinuteRequest) GetUuid() string
func (*ConsumeBeatsPerMinuteRequest) GetValue ¶
func (x *ConsumeBeatsPerMinuteRequest) GetValue() uint32
func (*ConsumeBeatsPerMinuteRequest) ProtoMessage ¶
func (*ConsumeBeatsPerMinuteRequest) ProtoMessage()
func (*ConsumeBeatsPerMinuteRequest) ProtoReflect ¶
func (x *ConsumeBeatsPerMinuteRequest) ProtoReflect() protoreflect.Message
func (*ConsumeBeatsPerMinuteRequest) Reset ¶
func (x *ConsumeBeatsPerMinuteRequest) Reset()
func (*ConsumeBeatsPerMinuteRequest) String ¶
func (x *ConsumeBeatsPerMinuteRequest) String() string
type ConsumeBeatsPerMinuteResponse ¶
type ConsumeBeatsPerMinuteResponse struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ConsumeBeatsPerMinuteResponse) Descriptor
deprecated
func (*ConsumeBeatsPerMinuteResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConsumeBeatsPerMinuteResponse.ProtoReflect.Descriptor instead.
func (*ConsumeBeatsPerMinuteResponse) GetTotal ¶
func (x *ConsumeBeatsPerMinuteResponse) GetTotal() uint32
func (*ConsumeBeatsPerMinuteResponse) ProtoMessage ¶
func (*ConsumeBeatsPerMinuteResponse) ProtoMessage()
func (*ConsumeBeatsPerMinuteResponse) ProtoReflect ¶
func (x *ConsumeBeatsPerMinuteResponse) ProtoReflect() protoreflect.Message
func (*ConsumeBeatsPerMinuteResponse) Reset ¶
func (x *ConsumeBeatsPerMinuteResponse) Reset()
func (*ConsumeBeatsPerMinuteResponse) String ¶
func (x *ConsumeBeatsPerMinuteResponse) String() string
type UnimplementedWearableServiceServer ¶
type UnimplementedWearableServiceServer struct{}
UnimplementedWearableServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedWearableServiceServer) BeatsPerMinute ¶
func (UnimplementedWearableServiceServer) BeatsPerMinute(*BeatsPerMinuteRequest, grpc.ServerStreamingServer[BeatsPerMinuteResponse]) error
func (UnimplementedWearableServiceServer) CalculateBeatsPerMinute ¶
func (UnimplementedWearableServiceServer) CalculateBeatsPerMinute(grpc.BidiStreamingServer[CalculateBeatsPerMinuteRequest, CalculateBeatsPerMinuteResponse]) error
func (UnimplementedWearableServiceServer) ConsumeBeatsPerMinute ¶
func (UnimplementedWearableServiceServer) ConsumeBeatsPerMinute(grpc.ClientStreamingServer[ConsumeBeatsPerMinuteRequest, ConsumeBeatsPerMinuteResponse]) error
type UnsafeWearableServiceServer ¶
type UnsafeWearableServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWearableServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WearableServiceServer will result in compilation errors.
type WearableServiceClient ¶
type WearableServiceClient interface { BeatsPerMinute(ctx context.Context, in *BeatsPerMinuteRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[BeatsPerMinuteResponse], error) ConsumeBeatsPerMinute(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[ConsumeBeatsPerMinuteRequest, ConsumeBeatsPerMinuteResponse], error) CalculateBeatsPerMinute(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[CalculateBeatsPerMinuteRequest, CalculateBeatsPerMinuteResponse], error) }
WearableServiceClient is the client API for WearableService 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 NewWearableServiceClient ¶
func NewWearableServiceClient(cc grpc.ClientConnInterface) WearableServiceClient
type WearableServiceServer ¶
type WearableServiceServer interface { BeatsPerMinute(*BeatsPerMinuteRequest, grpc.ServerStreamingServer[BeatsPerMinuteResponse]) error ConsumeBeatsPerMinute(grpc.ClientStreamingServer[ConsumeBeatsPerMinuteRequest, ConsumeBeatsPerMinuteResponse]) error CalculateBeatsPerMinute(grpc.BidiStreamingServer[CalculateBeatsPerMinuteRequest, CalculateBeatsPerMinuteResponse]) error // contains filtered or unexported methods }
WearableServiceServer is the server API for WearableService service. All implementations must embed UnimplementedWearableServiceServer for forward compatibility.
type WearableService_BeatsPerMinuteClient ¶
type WearableService_BeatsPerMinuteClient = grpc.ServerStreamingClient[BeatsPerMinuteResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WearableService_BeatsPerMinuteServer ¶
type WearableService_BeatsPerMinuteServer = grpc.ServerStreamingServer[BeatsPerMinuteResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WearableService_CalculateBeatsPerMinuteClient ¶
type WearableService_CalculateBeatsPerMinuteClient = grpc.BidiStreamingClient[CalculateBeatsPerMinuteRequest, CalculateBeatsPerMinuteResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WearableService_CalculateBeatsPerMinuteServer ¶
type WearableService_CalculateBeatsPerMinuteServer = grpc.BidiStreamingServer[CalculateBeatsPerMinuteRequest, CalculateBeatsPerMinuteResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WearableService_ConsumeBeatsPerMinuteClient ¶
type WearableService_ConsumeBeatsPerMinuteClient = grpc.ClientStreamingClient[ConsumeBeatsPerMinuteRequest, ConsumeBeatsPerMinuteResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type WearableService_ConsumeBeatsPerMinuteServer ¶
type WearableService_ConsumeBeatsPerMinuteServer = grpc.ClientStreamingServer[ConsumeBeatsPerMinuteRequest, ConsumeBeatsPerMinuteResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.