Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCloudTeamsServer(s grpc.ServiceRegistrar, srv CloudTeamsServer)
- type AgentActivity
- type CloudActivity
- func (*CloudActivity) Descriptor() ([]byte, []int)deprecated
- func (x *CloudActivity) GetConversationDisplayName() string
- func (x *CloudActivity) GetEvent() []byte
- func (*CloudActivity) ProtoMessage()
- func (x *CloudActivity) ProtoReflect() protoreflect.Message
- func (x *CloudActivity) Reset()
- func (x *CloudActivity) String() string
- type CloudTeamsClient
- type CloudTeamsServer
- type CloudTeams_StreamActivityClient
- type CloudTeams_StreamActivityServer
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetConversationId() string
- func (x *Message) GetData() []byte
- func (x *Message) GetMessageType() MessageType
- func (x *Message) GetTeamId() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MessageType
- func (MessageType) Descriptor() protoreflect.EnumDescriptor
- func (x MessageType) Enum() *MessageType
- func (MessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MessageType) Number() protoreflect.EnumNumber
- func (x MessageType) String() string
- func (MessageType) Type() protoreflect.EnumType
- type UnimplementedCloudTeamsServer
- type UnsafeCloudTeamsServer
Constants ¶
const (
CloudTeams_StreamActivity_FullMethodName = "/cloudteams.CloudTeams/StreamActivity"
)
Variables ¶
var ( MessageType_name = map[int32]string{ 0: "MESSAGE_EXECUTOR", 1: "MESSAGE_SOURCE", } MessageType_value = map[string]int32{ "MESSAGE_EXECUTOR": 0, "MESSAGE_SOURCE": 1, } )
Enum value maps for MessageType.
var CloudTeams_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudteams.CloudTeams", HandlerType: (*CloudTeamsServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "StreamActivity", Handler: _CloudTeams_StreamActivity_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "cloud_teams.proto", }
CloudTeams_ServiceDesc is the grpc.ServiceDesc for CloudTeams service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_cloud_teams_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCloudTeamsServer ¶
func RegisterCloudTeamsServer(s grpc.ServiceRegistrar, srv CloudTeamsServer)
Types ¶
type AgentActivity ¶
type AgentActivity struct { // message sent by agent, either as a response to a command or an event from enabled sources Message *Message `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*AgentActivity) Descriptor
deprecated
func (*AgentActivity) Descriptor() ([]byte, []int)
Deprecated: Use AgentActivity.ProtoReflect.Descriptor instead.
func (*AgentActivity) GetMessage ¶
func (x *AgentActivity) GetMessage() *Message
func (*AgentActivity) ProtoMessage ¶
func (*AgentActivity) ProtoMessage()
func (*AgentActivity) ProtoReflect ¶
func (x *AgentActivity) ProtoReflect() protoreflect.Message
func (*AgentActivity) Reset ¶
func (x *AgentActivity) Reset()
func (*AgentActivity) String ¶
func (x *AgentActivity) String() string
type CloudActivity ¶
type CloudActivity struct { Event []byte `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` ConversationDisplayName string `protobuf:"bytes,2,opt,name=conversationDisplayName,proto3" json:"conversationDisplayName,omitempty"` // contains filtered or unexported fields }
func (*CloudActivity) Descriptor
deprecated
func (*CloudActivity) Descriptor() ([]byte, []int)
Deprecated: Use CloudActivity.ProtoReflect.Descriptor instead.
func (*CloudActivity) GetConversationDisplayName ¶ added in v1.7.0
func (x *CloudActivity) GetConversationDisplayName() string
func (*CloudActivity) GetEvent ¶
func (x *CloudActivity) GetEvent() []byte
func (*CloudActivity) ProtoMessage ¶
func (*CloudActivity) ProtoMessage()
func (*CloudActivity) ProtoReflect ¶
func (x *CloudActivity) ProtoReflect() protoreflect.Message
func (*CloudActivity) Reset ¶
func (x *CloudActivity) Reset()
func (*CloudActivity) String ¶
func (x *CloudActivity) String() string
type CloudTeamsClient ¶
type CloudTeamsClient interface {
StreamActivity(ctx context.Context, opts ...grpc.CallOption) (CloudTeams_StreamActivityClient, error)
}
CloudTeamsClient is the client API for CloudTeams 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 NewCloudTeamsClient ¶
func NewCloudTeamsClient(cc grpc.ClientConnInterface) CloudTeamsClient
type CloudTeamsServer ¶
type CloudTeamsServer interface { StreamActivity(CloudTeams_StreamActivityServer) error // contains filtered or unexported methods }
CloudTeamsServer is the server API for CloudTeams service. All implementations must embed UnimplementedCloudTeamsServer for forward compatibility
type CloudTeams_StreamActivityClient ¶
type CloudTeams_StreamActivityClient interface { Send(*AgentActivity) error Recv() (*CloudActivity, error) grpc.ClientStream }
type CloudTeams_StreamActivityServer ¶
type CloudTeams_StreamActivityServer interface { Send(*CloudActivity) error Recv() (*AgentActivity, error) grpc.ServerStream }
type Message ¶
type Message struct { TeamId string `protobuf:"bytes,1,opt,name=teamId,proto3" json:"teamId,omitempty"` ConversationId string `protobuf:"bytes,3,opt,name=conversationId,proto3" json:"conversationId,omitempty"` MessageType MessageType `protobuf:"varint,4,opt,name=messageType,proto3,enum=cloudteams.MessageType" json:"messageType,omitempty"` Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetConversationId ¶
func (*Message) GetMessageType ¶
func (x *Message) GetMessageType() MessageType
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageType ¶
type MessageType int32
const ( MessageType_MESSAGE_EXECUTOR MessageType = 0 MessageType_MESSAGE_SOURCE MessageType = 1 )
func (MessageType) Descriptor ¶
func (MessageType) Descriptor() protoreflect.EnumDescriptor
func (MessageType) Enum ¶
func (x MessageType) Enum() *MessageType
func (MessageType) EnumDescriptor
deprecated
func (MessageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MessageType.Descriptor instead.
func (MessageType) Number ¶
func (x MessageType) Number() protoreflect.EnumNumber
func (MessageType) String ¶
func (x MessageType) String() string
func (MessageType) Type ¶
func (MessageType) Type() protoreflect.EnumType
type UnimplementedCloudTeamsServer ¶
type UnimplementedCloudTeamsServer struct { }
UnimplementedCloudTeamsServer must be embedded to have forward compatible implementations.
func (UnimplementedCloudTeamsServer) StreamActivity ¶
func (UnimplementedCloudTeamsServer) StreamActivity(CloudTeams_StreamActivityServer) error
type UnsafeCloudTeamsServer ¶
type UnsafeCloudTeamsServer interface {
// contains filtered or unexported methods
}
UnsafeCloudTeamsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CloudTeamsServer will result in compilation errors.