Documentation ¶
Index ¶
- Variables
- func NewServer()
- func RegisterChatServiceServer(s grpc.ServiceRegistrar, srv ChatServiceServer)
- func SafeToFile(ip string, sid string, tst string)
- type ChatServiceClient
- type ChatServiceServer
- type Health
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetLocation() string
- func (x *Message) GetSensorData() string
- func (x *Message) GetSensorID() int32
- func (x *Message) GetSensortyp() string
- func (x *Message) GetTimestamp() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MessageReply
- type Reply
- type Server
- type UnimplementedChatServiceServer
- type UnsafeChatServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_sidecar_proto protoreflect.FileDescriptor
var Location string
var SensorData string
var SensorID int32
var Sensortyp string
var Timestamp string
Functions ¶
func RegisterChatServiceServer ¶
func RegisterChatServiceServer(s grpc.ServiceRegistrar, srv ChatServiceServer)
func SafeToFile ¶
Types ¶
type ChatServiceClient ¶
type ChatServiceClient interface { DataFromService(ctx context.Context, in *Message, opts ...grpc.CallOption) (*MessageReply, error) HealthCheck(ctx context.Context, in *Health, opts ...grpc.CallOption) (*MessageReply, error) }
ChatServiceClient is the client API for ChatService 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 NewChatServiceClient ¶
func NewChatServiceClient(cc grpc.ClientConnInterface) ChatServiceClient
type ChatServiceServer ¶
type ChatServiceServer interface { DataFromService(context.Context, *Message) (*MessageReply, error) HealthCheck(context.Context, *Health) (*MessageReply, error) // contains filtered or unexported methods }
ChatServiceServer is the server API for ChatService service. All implementations must embed UnimplementedChatServiceServer for forward compatibility
type Health ¶
type Health struct { Reply string `protobuf:"bytes,1,opt,name=reply,proto3" json:"reply,omitempty"` // contains filtered or unexported fields }
func (*Health) Descriptor
deprecated
func (*Health) ProtoMessage ¶
func (*Health) ProtoMessage()
func (*Health) ProtoReflect ¶
func (x *Health) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct { Timestamp string `protobuf:"bytes,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` Location string `protobuf:"bytes,2,opt,name=Location,proto3" json:"Location,omitempty"` Sensortyp string `protobuf:"bytes,3,opt,name=Sensortyp,proto3" json:"Sensortyp,omitempty"` SensorID int32 `protobuf:"varint,4,opt,name=SensorID,proto3" json:"SensorID,omitempty"` SensorData string `protobuf:"bytes,5,opt,name=SensorData,proto3" json:"SensorData,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetLocation ¶
func (*Message) GetSensorData ¶
func (*Message) GetSensorID ¶
func (*Message) GetSensortyp ¶
func (*Message) GetTimestamp ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageReply ¶
type MessageReply struct { Reply string `protobuf:"bytes,1,opt,name=reply,proto3" json:"reply,omitempty"` // contains filtered or unexported fields }
func (*MessageReply) Descriptor
deprecated
func (*MessageReply) Descriptor() ([]byte, []int)
Deprecated: Use MessageReply.ProtoReflect.Descriptor instead.
func (*MessageReply) GetReply ¶
func (x *MessageReply) GetReply() string
func (*MessageReply) ProtoMessage ¶
func (*MessageReply) ProtoMessage()
func (*MessageReply) ProtoReflect ¶
func (x *MessageReply) ProtoReflect() protoreflect.Message
func (*MessageReply) Reset ¶
func (x *MessageReply) Reset()
func (*MessageReply) String ¶
func (x *MessageReply) String() string
type Reply ¶
type Reply struct { Reply string `protobuf:"bytes,1,opt,name=reply,proto3" json:"reply,omitempty"` // contains filtered or unexported fields }
func (*Reply) Descriptor
deprecated
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶
func (x *Reply) ProtoReflect() protoreflect.Message
type Server ¶
type Server struct { }
func (*Server) DataFromService ¶
func (*Server) GetMessage ¶
func (*Server) HealthCheck ¶
type UnimplementedChatServiceServer ¶
type UnimplementedChatServiceServer struct { }
UnimplementedChatServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedChatServiceServer) DataFromService ¶
func (UnimplementedChatServiceServer) DataFromService(context.Context, *Message) (*MessageReply, error)
func (UnimplementedChatServiceServer) HealthCheck ¶
func (UnimplementedChatServiceServer) HealthCheck(context.Context, *Health) (*MessageReply, error)
type UnsafeChatServiceServer ¶
type UnsafeChatServiceServer interface {
// contains filtered or unexported methods
}
UnsafeChatServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChatServiceServer will result in compilation errors.