thprotos

package
v0.0.0-...-d15b5f8 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_thsock_proto protoreflect.FileDescriptor
View Source
var TempHumSvc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "thgrpc.TempHumSvc",
	HandlerType: (*TempHumSvcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ReadTempHum",
			Handler:    _TempHumSvc_ReadTempHum_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "thsock.proto",
}

TempHumSvc_ServiceDesc is the grpc.ServiceDesc for TempHumSvc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTempHumSvcServer

func RegisterTempHumSvcServer(s grpc.ServiceRegistrar, srv TempHumSvcServer)

Types

type ReadTempHumReply

type ReadTempHumReply struct {
	Temperature float64 `protobuf:"fixed64,1,opt,name=Temperature,proto3" json:"Temperature,omitempty"`
	Humidity    float64 `protobuf:"fixed64,2,opt,name=Humidity,proto3" json:"Humidity,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadTempHumReply) Descriptor deprecated

func (*ReadTempHumReply) Descriptor() ([]byte, []int)

Deprecated: Use ReadTempHumReply.ProtoReflect.Descriptor instead.

func (*ReadTempHumReply) GetHumidity

func (x *ReadTempHumReply) GetHumidity() float64

func (*ReadTempHumReply) GetTemperature

func (x *ReadTempHumReply) GetTemperature() float64

func (*ReadTempHumReply) ProtoMessage

func (*ReadTempHumReply) ProtoMessage()

func (*ReadTempHumReply) ProtoReflect

func (x *ReadTempHumReply) ProtoReflect() protoreflect.Message

func (*ReadTempHumReply) Reset

func (x *ReadTempHumReply) Reset()

func (*ReadTempHumReply) String

func (x *ReadTempHumReply) String() string

type ReadTempHumRequest

type ReadTempHumRequest struct {
	// contains filtered or unexported fields
}

func (*ReadTempHumRequest) Descriptor deprecated

func (*ReadTempHumRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReadTempHumRequest.ProtoReflect.Descriptor instead.

func (*ReadTempHumRequest) ProtoMessage

func (*ReadTempHumRequest) ProtoMessage()

func (*ReadTempHumRequest) ProtoReflect

func (x *ReadTempHumRequest) ProtoReflect() protoreflect.Message

func (*ReadTempHumRequest) Reset

func (x *ReadTempHumRequest) Reset()

func (*ReadTempHumRequest) String

func (x *ReadTempHumRequest) String() string

type TempHumSvcClient

type TempHumSvcClient interface {
	// Read Temperature and Humidity from sensor
	ReadTempHum(ctx context.Context, in *ReadTempHumRequest, opts ...grpc.CallOption) (*ReadTempHumReply, error)
}

TempHumSvcClient is the client API for TempHumSvc 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 NewTempHumSvcClient

func NewTempHumSvcClient(cc grpc.ClientConnInterface) TempHumSvcClient

type TempHumSvcServer

type TempHumSvcServer interface {
	// Read Temperature and Humidity from sensor
	ReadTempHum(context.Context, *ReadTempHumRequest) (*ReadTempHumReply, error)
	// contains filtered or unexported methods
}

TempHumSvcServer is the server API for TempHumSvc service. All implementations must embed UnimplementedTempHumSvcServer for forward compatibility

type UnimplementedTempHumSvcServer

type UnimplementedTempHumSvcServer struct {
}

UnimplementedTempHumSvcServer must be embedded to have forward compatible implementations.

func (UnimplementedTempHumSvcServer) ReadTempHum

type UnsafeTempHumSvcServer

type UnsafeTempHumSvcServer interface {
	// contains filtered or unexported methods
}

UnsafeTempHumSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TempHumSvcServer will result in compilation errors.

Jump to

Keyboard shortcuts

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