chore: initialize go-sip repository
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,509 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.6.0
|
||||
// - protoc (unknown)
|
||||
// source: agent/v1/agent.proto
|
||||
|
||||
package agentv1
|
||||
|
||||
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.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
AgentControlService_GetAgentStatus_FullMethodName = "/agent.v1.AgentControlService/GetAgentStatus"
|
||||
AgentControlService_ActivateAgent_FullMethodName = "/agent.v1.AgentControlService/ActivateAgent"
|
||||
AgentControlService_GetBootstrap_FullMethodName = "/agent.v1.AgentControlService/GetBootstrap"
|
||||
AgentControlService_SetAdmissionState_FullMethodName = "/agent.v1.AgentControlService/SetAdmissionState"
|
||||
AgentControlService_Execute_FullMethodName = "/agent.v1.AgentControlService/Execute"
|
||||
AgentControlService_GetExecutionPermit_FullMethodName = "/agent.v1.AgentControlService/GetExecutionPermit"
|
||||
AgentControlService_ApplyTaskControl_FullMethodName = "/agent.v1.AgentControlService/ApplyTaskControl"
|
||||
AgentControlService_QueryExecution_FullMethodName = "/agent.v1.AgentControlService/QueryExecution"
|
||||
AgentControlService_ReportExecutionEvent_FullMethodName = "/agent.v1.AgentControlService/ReportExecutionEvent"
|
||||
AgentControlService_RequestUpload_FullMethodName = "/agent.v1.AgentControlService/RequestUpload"
|
||||
AgentControlService_CompleteUpload_FullMethodName = "/agent.v1.AgentControlService/CompleteUpload"
|
||||
)
|
||||
|
||||
// AgentControlServiceClient is the client API for AgentControlService 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.
|
||||
//
|
||||
// AgentControl is the project-owned Unary gRPC boundary between the single
|
||||
// active Dispatcher and a Cell Agent. It carries metadata and facts, never
|
||||
// audio bytes or an internal message-bus replacement.
|
||||
type AgentControlServiceClient interface {
|
||||
GetAgentStatus(ctx context.Context, in *GetAgentStatusRequest, opts ...grpc.CallOption) (*GetAgentStatusResponse, error)
|
||||
ActivateAgent(ctx context.Context, in *ActivateAgentRequest, opts ...grpc.CallOption) (*ActivateAgentResponse, error)
|
||||
GetBootstrap(ctx context.Context, in *GetBootstrapRequest, opts ...grpc.CallOption) (*GetBootstrapResponse, error)
|
||||
SetAdmissionState(ctx context.Context, in *SetAdmissionStateRequest, opts ...grpc.CallOption) (*SetAdmissionStateResponse, error)
|
||||
Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error)
|
||||
GetExecutionPermit(ctx context.Context, in *GetExecutionPermitRequest, opts ...grpc.CallOption) (*GetExecutionPermitResponse, error)
|
||||
ApplyTaskControl(ctx context.Context, in *ApplyTaskControlRequest, opts ...grpc.CallOption) (*ApplyTaskControlResponse, error)
|
||||
QueryExecution(ctx context.Context, in *QueryExecutionRequest, opts ...grpc.CallOption) (*QueryExecutionResponse, error)
|
||||
ReportExecutionEvent(ctx context.Context, in *ReportExecutionEventRequest, opts ...grpc.CallOption) (*ReportExecutionEventResponse, error)
|
||||
RequestUpload(ctx context.Context, in *RequestUploadRequest, opts ...grpc.CallOption) (*RequestUploadResponse, error)
|
||||
CompleteUpload(ctx context.Context, in *CompleteUploadRequest, opts ...grpc.CallOption) (*CompleteUploadResponse, error)
|
||||
}
|
||||
|
||||
type agentControlServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewAgentControlServiceClient(cc grpc.ClientConnInterface) AgentControlServiceClient {
|
||||
return &agentControlServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *agentControlServiceClient) GetAgentStatus(ctx context.Context, in *GetAgentStatusRequest, opts ...grpc.CallOption) (*GetAgentStatusResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetAgentStatusResponse)
|
||||
err := c.cc.Invoke(ctx, AgentControlService_GetAgentStatus_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentControlServiceClient) ActivateAgent(ctx context.Context, in *ActivateAgentRequest, opts ...grpc.CallOption) (*ActivateAgentResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ActivateAgentResponse)
|
||||
err := c.cc.Invoke(ctx, AgentControlService_ActivateAgent_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentControlServiceClient) GetBootstrap(ctx context.Context, in *GetBootstrapRequest, opts ...grpc.CallOption) (*GetBootstrapResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetBootstrapResponse)
|
||||
err := c.cc.Invoke(ctx, AgentControlService_GetBootstrap_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentControlServiceClient) SetAdmissionState(ctx context.Context, in *SetAdmissionStateRequest, opts ...grpc.CallOption) (*SetAdmissionStateResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(SetAdmissionStateResponse)
|
||||
err := c.cc.Invoke(ctx, AgentControlService_SetAdmissionState_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentControlServiceClient) Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ExecuteResponse)
|
||||
err := c.cc.Invoke(ctx, AgentControlService_Execute_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentControlServiceClient) GetExecutionPermit(ctx context.Context, in *GetExecutionPermitRequest, opts ...grpc.CallOption) (*GetExecutionPermitResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetExecutionPermitResponse)
|
||||
err := c.cc.Invoke(ctx, AgentControlService_GetExecutionPermit_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentControlServiceClient) ApplyTaskControl(ctx context.Context, in *ApplyTaskControlRequest, opts ...grpc.CallOption) (*ApplyTaskControlResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ApplyTaskControlResponse)
|
||||
err := c.cc.Invoke(ctx, AgentControlService_ApplyTaskControl_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentControlServiceClient) QueryExecution(ctx context.Context, in *QueryExecutionRequest, opts ...grpc.CallOption) (*QueryExecutionResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(QueryExecutionResponse)
|
||||
err := c.cc.Invoke(ctx, AgentControlService_QueryExecution_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentControlServiceClient) ReportExecutionEvent(ctx context.Context, in *ReportExecutionEventRequest, opts ...grpc.CallOption) (*ReportExecutionEventResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ReportExecutionEventResponse)
|
||||
err := c.cc.Invoke(ctx, AgentControlService_ReportExecutionEvent_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentControlServiceClient) RequestUpload(ctx context.Context, in *RequestUploadRequest, opts ...grpc.CallOption) (*RequestUploadResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(RequestUploadResponse)
|
||||
err := c.cc.Invoke(ctx, AgentControlService_RequestUpload_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentControlServiceClient) CompleteUpload(ctx context.Context, in *CompleteUploadRequest, opts ...grpc.CallOption) (*CompleteUploadResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(CompleteUploadResponse)
|
||||
err := c.cc.Invoke(ctx, AgentControlService_CompleteUpload_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// AgentControlServiceServer is the server API for AgentControlService service.
|
||||
// All implementations must embed UnimplementedAgentControlServiceServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// AgentControl is the project-owned Unary gRPC boundary between the single
|
||||
// active Dispatcher and a Cell Agent. It carries metadata and facts, never
|
||||
// audio bytes or an internal message-bus replacement.
|
||||
type AgentControlServiceServer interface {
|
||||
GetAgentStatus(context.Context, *GetAgentStatusRequest) (*GetAgentStatusResponse, error)
|
||||
ActivateAgent(context.Context, *ActivateAgentRequest) (*ActivateAgentResponse, error)
|
||||
GetBootstrap(context.Context, *GetBootstrapRequest) (*GetBootstrapResponse, error)
|
||||
SetAdmissionState(context.Context, *SetAdmissionStateRequest) (*SetAdmissionStateResponse, error)
|
||||
Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error)
|
||||
GetExecutionPermit(context.Context, *GetExecutionPermitRequest) (*GetExecutionPermitResponse, error)
|
||||
ApplyTaskControl(context.Context, *ApplyTaskControlRequest) (*ApplyTaskControlResponse, error)
|
||||
QueryExecution(context.Context, *QueryExecutionRequest) (*QueryExecutionResponse, error)
|
||||
ReportExecutionEvent(context.Context, *ReportExecutionEventRequest) (*ReportExecutionEventResponse, error)
|
||||
RequestUpload(context.Context, *RequestUploadRequest) (*RequestUploadResponse, error)
|
||||
CompleteUpload(context.Context, *CompleteUploadRequest) (*CompleteUploadResponse, error)
|
||||
mustEmbedUnimplementedAgentControlServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedAgentControlServiceServer must be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedAgentControlServiceServer struct{}
|
||||
|
||||
func (UnimplementedAgentControlServiceServer) GetAgentStatus(context.Context, *GetAgentStatusRequest) (*GetAgentStatusResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetAgentStatus not implemented")
|
||||
}
|
||||
func (UnimplementedAgentControlServiceServer) ActivateAgent(context.Context, *ActivateAgentRequest) (*ActivateAgentResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ActivateAgent not implemented")
|
||||
}
|
||||
func (UnimplementedAgentControlServiceServer) GetBootstrap(context.Context, *GetBootstrapRequest) (*GetBootstrapResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetBootstrap not implemented")
|
||||
}
|
||||
func (UnimplementedAgentControlServiceServer) SetAdmissionState(context.Context, *SetAdmissionStateRequest) (*SetAdmissionStateResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SetAdmissionState not implemented")
|
||||
}
|
||||
func (UnimplementedAgentControlServiceServer) Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Execute not implemented")
|
||||
}
|
||||
func (UnimplementedAgentControlServiceServer) GetExecutionPermit(context.Context, *GetExecutionPermitRequest) (*GetExecutionPermitResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetExecutionPermit not implemented")
|
||||
}
|
||||
func (UnimplementedAgentControlServiceServer) ApplyTaskControl(context.Context, *ApplyTaskControlRequest) (*ApplyTaskControlResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ApplyTaskControl not implemented")
|
||||
}
|
||||
func (UnimplementedAgentControlServiceServer) QueryExecution(context.Context, *QueryExecutionRequest) (*QueryExecutionResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method QueryExecution not implemented")
|
||||
}
|
||||
func (UnimplementedAgentControlServiceServer) ReportExecutionEvent(context.Context, *ReportExecutionEventRequest) (*ReportExecutionEventResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ReportExecutionEvent not implemented")
|
||||
}
|
||||
func (UnimplementedAgentControlServiceServer) RequestUpload(context.Context, *RequestUploadRequest) (*RequestUploadResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method RequestUpload not implemented")
|
||||
}
|
||||
func (UnimplementedAgentControlServiceServer) CompleteUpload(context.Context, *CompleteUploadRequest) (*CompleteUploadResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method CompleteUpload not implemented")
|
||||
}
|
||||
func (UnimplementedAgentControlServiceServer) mustEmbedUnimplementedAgentControlServiceServer() {}
|
||||
func (UnimplementedAgentControlServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeAgentControlServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to AgentControlServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeAgentControlServiceServer interface {
|
||||
mustEmbedUnimplementedAgentControlServiceServer()
|
||||
}
|
||||
|
||||
func RegisterAgentControlServiceServer(s grpc.ServiceRegistrar, srv AgentControlServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedAgentControlServiceServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&AgentControlService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _AgentControlService_GetAgentStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetAgentStatusRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AgentControlServiceServer).GetAgentStatus(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AgentControlService_GetAgentStatus_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AgentControlServiceServer).GetAgentStatus(ctx, req.(*GetAgentStatusRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AgentControlService_ActivateAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ActivateAgentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AgentControlServiceServer).ActivateAgent(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AgentControlService_ActivateAgent_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AgentControlServiceServer).ActivateAgent(ctx, req.(*ActivateAgentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AgentControlService_GetBootstrap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetBootstrapRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AgentControlServiceServer).GetBootstrap(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AgentControlService_GetBootstrap_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AgentControlServiceServer).GetBootstrap(ctx, req.(*GetBootstrapRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AgentControlService_SetAdmissionState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SetAdmissionStateRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AgentControlServiceServer).SetAdmissionState(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AgentControlService_SetAdmissionState_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AgentControlServiceServer).SetAdmissionState(ctx, req.(*SetAdmissionStateRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AgentControlService_Execute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ExecuteRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AgentControlServiceServer).Execute(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AgentControlService_Execute_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AgentControlServiceServer).Execute(ctx, req.(*ExecuteRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AgentControlService_GetExecutionPermit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetExecutionPermitRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AgentControlServiceServer).GetExecutionPermit(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AgentControlService_GetExecutionPermit_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AgentControlServiceServer).GetExecutionPermit(ctx, req.(*GetExecutionPermitRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AgentControlService_ApplyTaskControl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ApplyTaskControlRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AgentControlServiceServer).ApplyTaskControl(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AgentControlService_ApplyTaskControl_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AgentControlServiceServer).ApplyTaskControl(ctx, req.(*ApplyTaskControlRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AgentControlService_QueryExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(QueryExecutionRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AgentControlServiceServer).QueryExecution(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AgentControlService_QueryExecution_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AgentControlServiceServer).QueryExecution(ctx, req.(*QueryExecutionRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AgentControlService_ReportExecutionEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ReportExecutionEventRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AgentControlServiceServer).ReportExecutionEvent(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AgentControlService_ReportExecutionEvent_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AgentControlServiceServer).ReportExecutionEvent(ctx, req.(*ReportExecutionEventRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AgentControlService_RequestUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(RequestUploadRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AgentControlServiceServer).RequestUpload(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AgentControlService_RequestUpload_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AgentControlServiceServer).RequestUpload(ctx, req.(*RequestUploadRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AgentControlService_CompleteUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CompleteUploadRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AgentControlServiceServer).CompleteUpload(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AgentControlService_CompleteUpload_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AgentControlServiceServer).CompleteUpload(ctx, req.(*CompleteUploadRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// AgentControlService_ServiceDesc is the grpc.ServiceDesc for AgentControlService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var AgentControlService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "agent.v1.AgentControlService",
|
||||
HandlerType: (*AgentControlServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "GetAgentStatus",
|
||||
Handler: _AgentControlService_GetAgentStatus_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ActivateAgent",
|
||||
Handler: _AgentControlService_ActivateAgent_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetBootstrap",
|
||||
Handler: _AgentControlService_GetBootstrap_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SetAdmissionState",
|
||||
Handler: _AgentControlService_SetAdmissionState_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Execute",
|
||||
Handler: _AgentControlService_Execute_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetExecutionPermit",
|
||||
Handler: _AgentControlService_GetExecutionPermit_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ApplyTaskControl",
|
||||
Handler: _AgentControlService_ApplyTaskControl_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "QueryExecution",
|
||||
Handler: _AgentControlService_QueryExecution_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ReportExecutionEvent",
|
||||
Handler: _AgentControlService_ReportExecutionEvent_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "RequestUpload",
|
||||
Handler: _AgentControlService_RequestUpload_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CompleteUpload",
|
||||
Handler: _AgentControlService_CompleteUpload_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "agent/v1/agent.proto",
|
||||
}
|
||||
Reference in New Issue
Block a user