chat

package
v0.0.0-...-727a1fa Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_chat2_proto protoreflect.FileDescriptor
View Source
var Location string
View Source
var SensorData string
View Source
var SensorID int32
View Source
var Sensortyp string
View Source
var Timestamp string

Functions

func Master

func Master()

func RegisterChatServiceServer

func RegisterChatServiceServer(s grpc.ServiceRegistrar, srv ChatServiceServer)

func SafeToFile

func SafeToFile(ip string, sid string, tst string)

Types

type ChatServiceClient

type ChatServiceClient interface {
	DataFromSidecar(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.

type ChatServiceServer

type ChatServiceServer interface {
	DataFromSidecar(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) Descriptor() ([]byte, []int)

Deprecated: Use Health.ProtoReflect.Descriptor instead.

func (*Health) GetReply

func (x *Health) GetReply() string

func (*Health) ProtoMessage

func (*Health) ProtoMessage()

func (*Health) ProtoReflect

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

func (*Health) Reset

func (x *Health) Reset()

func (*Health) String

func (x *Health) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetLocation

func (x *Message) GetLocation() string

func (*Message) GetSensorData

func (x *Message) GetSensorData() string

func (*Message) GetSensorID

func (x *Message) GetSensorID() int32

func (*Message) GetSensortyp

func (x *Message) GetSensortyp() string

func (*Message) GetTimestamp

func (x *Message) GetTimestamp() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Reply.ProtoReflect.Descriptor instead.

func (*Reply) GetReply

func (x *Reply) GetReply() string

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) ProtoReflect

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

func (*Reply) Reset

func (x *Reply) Reset()

func (*Reply) String

func (x *Reply) String() string

type Server

type Server struct {
}

func (*Server) DataFromSidecar

func (s *Server) DataFromSidecar(ctx context.Context, message *Message) (*MessageReply, error)

func (*Server) GetMessage

func (s *Server) GetMessage() string

func (*Server) HealthCheck

func (s *Server) HealthCheck(ctx context.Context, health2 *Health) (*MessageReply, error)

type UnimplementedChatServiceServer

type UnimplementedChatServiceServer struct {
}

UnimplementedChatServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedChatServiceServer) DataFromSidecar

func (UnimplementedChatServiceServer) HealthCheck

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.

Jump to

Keyboard shortcuts

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