cloudteams

package
v1.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CloudTeams_StreamActivity_FullMethodName = "/cloudteams.CloudTeams/StreamActivity"
)

Variables

View Source
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.

View Source
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)

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetConversationId

func (x *Message) GetConversationId() string

func (*Message) GetData

func (x *Message) GetData() []byte

func (*Message) GetMessageType

func (x *Message) GetMessageType() MessageType

func (*Message) GetTeamId

func (x *Message) GetTeamId() 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 MessageType

type MessageType int32
const (
	MessageType_MESSAGE_EXECUTOR MessageType = 0
	MessageType_MESSAGE_SOURCE   MessageType = 1
)

func (MessageType) Descriptor

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

type UnimplementedCloudTeamsServer

type UnimplementedCloudTeamsServer struct {
}

UnimplementedCloudTeamsServer must be embedded to have forward compatible implementations.

func (UnimplementedCloudTeamsServer) StreamActivity

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.

Jump to

Keyboard shortcuts

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