api

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 11 Imported by: 0

README

Protobuf

Documentation

Index

Constants

View Source
const (
	HygrothermographService_GetHygrothermograph_FullMethodName = "/protobuf.api.HygrothermographService/GetHygrothermograph"
)

Variables

View Source
var File_hygrothermograph_proto protoreflect.FileDescriptor
View Source
var HygrothermographService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protobuf.api.HygrothermographService",
	HandlerType: (*HygrothermographServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetHygrothermograph",
			Handler:    _HygrothermographService_GetHygrothermograph_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "hygrothermograph.proto",
}

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

Functions

func HygrothermographCreator

func HygrothermographCreator() broker.Any

func RegisterHygrothermographHandler

func RegisterHygrothermographHandler(fnc HygrothermographHandler) broker.Handler

func RegisterHygrothermographServiceServer

func RegisterHygrothermographServiceServer(s grpc.ServiceRegistrar, srv HygrothermographServiceServer)

Types

type Hygrothermograph

type Hygrothermograph struct {
	Humidity    string `protobuf:"bytes,1,opt,name=Humidity,json=humidity,proto3" json:"Humidity,omitempty"`
	Temperature string `protobuf:"bytes,2,opt,name=Temperature,json=temperature,proto3" json:"Temperature,omitempty"`
	// contains filtered or unexported fields
}

func (*Hygrothermograph) Descriptor deprecated

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

Deprecated: Use Hygrothermograph.ProtoReflect.Descriptor instead.

func (*Hygrothermograph) GetHumidity

func (x *Hygrothermograph) GetHumidity() string

func (*Hygrothermograph) GetTemperature

func (x *Hygrothermograph) GetTemperature() string

func (*Hygrothermograph) ProtoMessage

func (*Hygrothermograph) ProtoMessage()

func (*Hygrothermograph) ProtoReflect

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

func (*Hygrothermograph) Reset

func (x *Hygrothermograph) Reset()

func (*Hygrothermograph) String

func (x *Hygrothermograph) String() string

type HygrothermographHandler

type HygrothermographHandler func(_ context.Context, topic string, headers broker.Headers, msg *Hygrothermograph) error

type HygrothermographServiceClient

type HygrothermographServiceClient interface {
	GetHygrothermograph(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Hygrothermograph, error)
}

HygrothermographServiceClient is the client API for HygrothermographService 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.

type HygrothermographServiceServer

type HygrothermographServiceServer interface {
	GetHygrothermograph(context.Context, *emptypb.Empty) (*Hygrothermograph, error)
	// contains filtered or unexported methods
}

HygrothermographServiceServer is the server API for HygrothermographService service. All implementations must embed UnimplementedHygrothermographServiceServer for forward compatibility

type UnimplementedHygrothermographServiceServer

type UnimplementedHygrothermographServiceServer struct {
}

UnimplementedHygrothermographServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHygrothermographServiceServer) GetHygrothermograph

type UnsafeHygrothermographServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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