feat: build wahrwelt A/D toolkit

This commit is contained in:
TakuyaYagam1 committed 2026-10-14 11:30:41 +03:00
1 parent 303438d206
commit 653924d8c6
564 files changed
+36310 -49998

No files matched your search

@@ -0,0 +1,376 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc (unknown)
// source: exploits/api.proto
package exploits
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// ServiceClient is the client API for Service 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 ServiceClient interface {
Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
Exploit(ctx context.Context, in *ExploitRequest, opts ...grpc.CallOption) (*ExploitResponse, error)
UpdateExploit(ctx context.Context, in *UpdateExploitRequest, opts ...grpc.CallOption) (*UpdateExploitResponse, error)
BroadcastCommand(ctx context.Context, in *BroadcastRequest, opts ...grpc.CallOption) (*BroadcastResponse, error)
BroadcastSubscribe(ctx context.Context, in *BroadcastSubscribeRequest, opts ...grpc.CallOption) (Service_BroadcastSubscribeClient, error)
SingleRun(ctx context.Context, in *SingleRunRequest, opts ...grpc.CallOption) (*SingleRunResponse, error)
SingleRunSubscribe(ctx context.Context, in *SingleRunSubscribeRequest, opts ...grpc.CallOption) (Service_SingleRunSubscribeClient, error)
}
type serviceClient struct {
cc grpc.ClientConnInterface
}
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient {
return &serviceClient{cc}
}
func (c *serviceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) {
out := new(PingResponse)
err := c.cc.Invoke(ctx, "/exploits.Service/Ping", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *serviceClient) Exploit(ctx context.Context, in *ExploitRequest, opts ...grpc.CallOption) (*ExploitResponse, error) {
out := new(ExploitResponse)
err := c.cc.Invoke(ctx, "/exploits.Service/Exploit", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *serviceClient) UpdateExploit(ctx context.Context, in *UpdateExploitRequest, opts ...grpc.CallOption) (*UpdateExploitResponse, error) {
out := new(UpdateExploitResponse)
err := c.cc.Invoke(ctx, "/exploits.Service/UpdateExploit", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *serviceClient) BroadcastCommand(ctx context.Context, in *BroadcastRequest, opts ...grpc.CallOption) (*BroadcastResponse, error) {
out := new(BroadcastResponse)
err := c.cc.Invoke(ctx, "/exploits.Service/BroadcastCommand", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *serviceClient) BroadcastSubscribe(ctx context.Context, in *BroadcastSubscribeRequest, opts ...grpc.CallOption) (Service_BroadcastSubscribeClient, error) {
stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[0], "/exploits.Service/BroadcastSubscribe", opts...)
if err != nil {
return nil, err
}
x := &serviceBroadcastSubscribeClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type Service_BroadcastSubscribeClient interface {
Recv() (*BroadcastSubscribeResponse, error)
grpc.ClientStream
}
type serviceBroadcastSubscribeClient struct {
grpc.ClientStream
}
func (x *serviceBroadcastSubscribeClient) Recv() (*BroadcastSubscribeResponse, error) {
m := new(BroadcastSubscribeResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *serviceClient) SingleRun(ctx context.Context, in *SingleRunRequest, opts ...grpc.CallOption) (*SingleRunResponse, error) {
out := new(SingleRunResponse)
err := c.cc.Invoke(ctx, "/exploits.Service/SingleRun", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *serviceClient) SingleRunSubscribe(ctx context.Context, in *SingleRunSubscribeRequest, opts ...grpc.CallOption) (Service_SingleRunSubscribeClient, error) {
stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[1], "/exploits.Service/SingleRunSubscribe", opts...)
if err != nil {
return nil, err
}
x := &serviceSingleRunSubscribeClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type Service_SingleRunSubscribeClient interface {
Recv() (*SingleRunSubscribeResponse, error)
grpc.ClientStream
}
type serviceSingleRunSubscribeClient struct {
grpc.ClientStream
}
func (x *serviceSingleRunSubscribeClient) Recv() (*SingleRunSubscribeResponse, error) {
m := new(SingleRunSubscribeResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// ServiceServer is the server API for Service service.
// All implementations must embed UnimplementedServiceServer
// for forward compatibility
type ServiceServer interface {
Ping(context.Context, *PingRequest) (*PingResponse, error)
Exploit(context.Context, *ExploitRequest) (*ExploitResponse, error)
UpdateExploit(context.Context, *UpdateExploitRequest) (*UpdateExploitResponse, error)
BroadcastCommand(context.Context, *BroadcastRequest) (*BroadcastResponse, error)
BroadcastSubscribe(*BroadcastSubscribeRequest, Service_BroadcastSubscribeServer) error
SingleRun(context.Context, *SingleRunRequest) (*SingleRunResponse, error)
SingleRunSubscribe(*SingleRunSubscribeRequest, Service_SingleRunSubscribeServer) error
mustEmbedUnimplementedServiceServer()
}
// UnimplementedServiceServer must be embedded to have forward compatible implementations.
type UnimplementedServiceServer struct {
}
func (UnimplementedServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
}
func (UnimplementedServiceServer) Exploit(context.Context, *ExploitRequest) (*ExploitResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Exploit not implemented")
}
func (UnimplementedServiceServer) UpdateExploit(context.Context, *UpdateExploitRequest) (*UpdateExploitResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateExploit not implemented")
}
func (UnimplementedServiceServer) BroadcastCommand(context.Context, *BroadcastRequest) (*BroadcastResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BroadcastCommand not implemented")
}
func (UnimplementedServiceServer) BroadcastSubscribe(*BroadcastSubscribeRequest, Service_BroadcastSubscribeServer) error {
return status.Errorf(codes.Unimplemented, "method BroadcastSubscribe not implemented")
}
func (UnimplementedServiceServer) SingleRun(context.Context, *SingleRunRequest) (*SingleRunResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SingleRun not implemented")
}
func (UnimplementedServiceServer) SingleRunSubscribe(*SingleRunSubscribeRequest, Service_SingleRunSubscribeServer) error {
return status.Errorf(codes.Unimplemented, "method SingleRunSubscribe not implemented")
}
func (UnimplementedServiceServer) mustEmbedUnimplementedServiceServer() {}
// UnsafeServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ServiceServer will
// result in compilation errors.
type UnsafeServiceServer interface {
mustEmbedUnimplementedServiceServer()
}
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer) {
s.RegisterService(&Service_ServiceDesc, srv)
}
func _Service_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PingRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServiceServer).Ping(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/exploits.Service/Ping",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServiceServer).Ping(ctx, req.(*PingRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Service_Exploit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ExploitRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServiceServer).Exploit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/exploits.Service/Exploit",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServiceServer).Exploit(ctx, req.(*ExploitRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Service_UpdateExploit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateExploitRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServiceServer).UpdateExploit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/exploits.Service/UpdateExploit",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServiceServer).UpdateExploit(ctx, req.(*UpdateExploitRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Service_BroadcastCommand_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BroadcastRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServiceServer).BroadcastCommand(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/exploits.Service/BroadcastCommand",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServiceServer).BroadcastCommand(ctx, req.(*BroadcastRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Service_BroadcastSubscribe_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(BroadcastSubscribeRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(ServiceServer).BroadcastSubscribe(m, &serviceBroadcastSubscribeServer{stream})
}
type Service_BroadcastSubscribeServer interface {
Send(*BroadcastSubscribeResponse) error
grpc.ServerStream
}
type serviceBroadcastSubscribeServer struct {
grpc.ServerStream
}
func (x *serviceBroadcastSubscribeServer) Send(m *BroadcastSubscribeResponse) error {
return x.ServerStream.SendMsg(m)
}
func _Service_SingleRun_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SingleRunRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServiceServer).SingleRun(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/exploits.Service/SingleRun",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServiceServer).SingleRun(ctx, req.(*SingleRunRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Service_SingleRunSubscribe_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(SingleRunSubscribeRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(ServiceServer).SingleRunSubscribe(m, &serviceSingleRunSubscribeServer{stream})
}
type Service_SingleRunSubscribeServer interface {
Send(*SingleRunSubscribeResponse) error
grpc.ServerStream
}
type serviceSingleRunSubscribeServer struct {
grpc.ServerStream
}
func (x *serviceSingleRunSubscribeServer) Send(m *SingleRunSubscribeResponse) error {
return x.ServerStream.SendMsg(m)
}
// Service_ServiceDesc is the grpc.ServiceDesc for Service service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Service_ServiceDesc = grpc.ServiceDesc{
ServiceName: "exploits.Service",
HandlerType: (*ServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Ping",
Handler: _Service_Ping_Handler,
},
{
MethodName: "Exploit",
Handler: _Service_Exploit_Handler,
},
{
MethodName: "UpdateExploit",
Handler: _Service_UpdateExploit_Handler,
},
{
MethodName: "BroadcastCommand",
Handler: _Service_BroadcastCommand_Handler,
},
{
MethodName: "SingleRun",
Handler: _Service_SingleRun_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "BroadcastSubscribe",
Handler: _Service_BroadcastSubscribe_Handler,
ServerStreams: true,
},
{
StreamName: "SingleRunSubscribe",
Handler: _Service_SingleRunSubscribe_Handler,
ServerStreams: true,
},
},
Metadata: "exploits/api.proto",
}