Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAgentHTTPServer(s *http.Server, srv AgentHTTPServer)
- func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)
- type AgentClient
- type AgentHTTPClient
- type AgentHTTPClientImpl
- func (c *AgentHTTPClientImpl) CreateAgent(ctx context.Context, in *CreateAgentRequest, opts ...http.CallOption) (*CreateAgentReply, error)
- func (c *AgentHTTPClientImpl) DeleteAgent(ctx context.Context, in *DeleteAgentRequest, opts ...http.CallOption) (*DeleteAgentReply, error)
- func (c *AgentHTTPClientImpl) GetAgent(ctx context.Context, in *GetAgentRequest, opts ...http.CallOption) (*GetAgentReply, error)
- func (c *AgentHTTPClientImpl) ListAgent(ctx context.Context, in *ListAgentRequest, opts ...http.CallOption) (*ListAgentReply, error)
- func (c *AgentHTTPClientImpl) UpdateAgent(ctx context.Context, in *UpdateAgentRequest, opts ...http.CallOption) (*UpdateAgentReply, error)
- type AgentHTTPServer
- type AgentServer
- type CreateAgentReply
- type CreateAgentRequest
- func (*CreateAgentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAgentRequest) GetName() string
- func (*CreateAgentRequest) ProtoMessage()
- func (x *CreateAgentRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAgentRequest) Reset()
- func (x *CreateAgentRequest) String() string
- type DeleteAgentReply
- type DeleteAgentRequest
- type GetAgentReply
- func (*GetAgentReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetAgentReply) GetId() string
- func (x *GetAgentReply) GetName() string
- func (*GetAgentReply) ProtoMessage()
- func (x *GetAgentReply) ProtoReflect() protoreflect.Message
- func (x *GetAgentReply) Reset()
- func (x *GetAgentReply) String() string
- type GetAgentRequest
- type ListAgentReply
- type ListAgentRequest
- type UnimplementedAgentServer
- func (UnimplementedAgentServer) CreateAgent(context.Context, *CreateAgentRequest) (*CreateAgentReply, error)
- func (UnimplementedAgentServer) DeleteAgent(context.Context, *DeleteAgentRequest) (*DeleteAgentReply, error)
- func (UnimplementedAgentServer) GetAgent(context.Context, *GetAgentRequest) (*GetAgentReply, error)
- func (UnimplementedAgentServer) ListAgent(context.Context, *ListAgentRequest) (*ListAgentReply, error)
- func (UnimplementedAgentServer) UpdateAgent(context.Context, *UpdateAgentRequest) (*UpdateAgentReply, error)
- type UnsafeAgentServer
- type UpdateAgentReply
- type UpdateAgentRequest
- func (*UpdateAgentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAgentRequest) GetId() string
- func (x *UpdateAgentRequest) GetName() string
- func (*UpdateAgentRequest) ProtoMessage()
- func (x *UpdateAgentRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAgentRequest) Reset()
- func (x *UpdateAgentRequest) String() string
Constants ¶
const ( Agent_CreateAgent_FullMethodName = "/api.agent.v1.Agent/CreateAgent" Agent_UpdateAgent_FullMethodName = "/api.agent.v1.Agent/UpdateAgent" Agent_DeleteAgent_FullMethodName = "/api.agent.v1.Agent/DeleteAgent" Agent_GetAgent_FullMethodName = "/api.agent.v1.Agent/GetAgent" Agent_ListAgent_FullMethodName = "/api.agent.v1.Agent/ListAgent" )
const OperationAgentCreateAgent = "/api.agent.v1.Agent/CreateAgent"
const OperationAgentDeleteAgent = "/api.agent.v1.Agent/DeleteAgent"
const OperationAgentGetAgent = "/api.agent.v1.Agent/GetAgent"
const OperationAgentListAgent = "/api.agent.v1.Agent/ListAgent"
const OperationAgentUpdateAgent = "/api.agent.v1.Agent/UpdateAgent"
Variables ¶
var Agent_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.agent.v1.Agent", HandlerType: (*AgentServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateAgent", Handler: _Agent_CreateAgent_Handler, }, { MethodName: "UpdateAgent", Handler: _Agent_UpdateAgent_Handler, }, { MethodName: "DeleteAgent", Handler: _Agent_DeleteAgent_Handler, }, { MethodName: "GetAgent", Handler: _Agent_GetAgent_Handler, }, { MethodName: "ListAgent", Handler: _Agent_ListAgent_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "agent/v1/agent.proto", }
Agent_ServiceDesc is the grpc.ServiceDesc for Agent service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_agent_v1_agent_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAgentHTTPServer ¶
func RegisterAgentHTTPServer(s *http.Server, srv AgentHTTPServer)
func RegisterAgentServer ¶
func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)
Types ¶
type AgentClient ¶
type AgentClient interface { CreateAgent(ctx context.Context, in *CreateAgentRequest, opts ...grpc.CallOption) (*CreateAgentReply, error) UpdateAgent(ctx context.Context, in *UpdateAgentRequest, opts ...grpc.CallOption) (*UpdateAgentReply, error) DeleteAgent(ctx context.Context, in *DeleteAgentRequest, opts ...grpc.CallOption) (*DeleteAgentReply, error) GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*GetAgentReply, error) ListAgent(ctx context.Context, in *ListAgentRequest, opts ...grpc.CallOption) (*ListAgentReply, error) }
AgentClient is the client API for Agent 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 NewAgentClient ¶
func NewAgentClient(cc grpc.ClientConnInterface) AgentClient
type AgentHTTPClient ¶
type AgentHTTPClient interface { CreateAgent(ctx context.Context, req *CreateAgentRequest, opts ...http.CallOption) (rsp *CreateAgentReply, err error) DeleteAgent(ctx context.Context, req *DeleteAgentRequest, opts ...http.CallOption) (rsp *DeleteAgentReply, err error) GetAgent(ctx context.Context, req *GetAgentRequest, opts ...http.CallOption) (rsp *GetAgentReply, err error) ListAgent(ctx context.Context, req *ListAgentRequest, opts ...http.CallOption) (rsp *ListAgentReply, err error) UpdateAgent(ctx context.Context, req *UpdateAgentRequest, opts ...http.CallOption) (rsp *UpdateAgentReply, err error) }
func NewAgentHTTPClient ¶
func NewAgentHTTPClient(client *http.Client) AgentHTTPClient
type AgentHTTPClientImpl ¶
type AgentHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AgentHTTPClientImpl) CreateAgent ¶
func (c *AgentHTTPClientImpl) CreateAgent(ctx context.Context, in *CreateAgentRequest, opts ...http.CallOption) (*CreateAgentReply, error)
func (*AgentHTTPClientImpl) DeleteAgent ¶
func (c *AgentHTTPClientImpl) DeleteAgent(ctx context.Context, in *DeleteAgentRequest, opts ...http.CallOption) (*DeleteAgentReply, error)
func (*AgentHTTPClientImpl) GetAgent ¶
func (c *AgentHTTPClientImpl) GetAgent(ctx context.Context, in *GetAgentRequest, opts ...http.CallOption) (*GetAgentReply, error)
func (*AgentHTTPClientImpl) ListAgent ¶
func (c *AgentHTTPClientImpl) ListAgent(ctx context.Context, in *ListAgentRequest, opts ...http.CallOption) (*ListAgentReply, error)
func (*AgentHTTPClientImpl) UpdateAgent ¶
func (c *AgentHTTPClientImpl) UpdateAgent(ctx context.Context, in *UpdateAgentRequest, opts ...http.CallOption) (*UpdateAgentReply, error)
type AgentHTTPServer ¶
type AgentHTTPServer interface { CreateAgent(context.Context, *CreateAgentRequest) (*CreateAgentReply, error) DeleteAgent(context.Context, *DeleteAgentRequest) (*DeleteAgentReply, error) GetAgent(context.Context, *GetAgentRequest) (*GetAgentReply, error) ListAgent(context.Context, *ListAgentRequest) (*ListAgentReply, error) UpdateAgent(context.Context, *UpdateAgentRequest) (*UpdateAgentReply, error) }
type AgentServer ¶
type AgentServer interface { CreateAgent(context.Context, *CreateAgentRequest) (*CreateAgentReply, error) UpdateAgent(context.Context, *UpdateAgentRequest) (*UpdateAgentReply, error) DeleteAgent(context.Context, *DeleteAgentRequest) (*DeleteAgentReply, error) GetAgent(context.Context, *GetAgentRequest) (*GetAgentReply, error) ListAgent(context.Context, *ListAgentRequest) (*ListAgentReply, error) // contains filtered or unexported methods }
AgentServer is the server API for Agent service. All implementations must embed UnimplementedAgentServer for forward compatibility
type CreateAgentReply ¶
type CreateAgentReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateAgentReply) Descriptor
deprecated
func (*CreateAgentReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateAgentReply.ProtoReflect.Descriptor instead.
func (*CreateAgentReply) GetId ¶
func (x *CreateAgentReply) GetId() string
func (*CreateAgentReply) ProtoMessage ¶
func (*CreateAgentReply) ProtoMessage()
func (*CreateAgentReply) ProtoReflect ¶
func (x *CreateAgentReply) ProtoReflect() protoreflect.Message
func (*CreateAgentReply) Reset ¶
func (x *CreateAgentReply) Reset()
func (*CreateAgentReply) String ¶
func (x *CreateAgentReply) String() string
type CreateAgentRequest ¶
type CreateAgentRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CreateAgentRequest) Descriptor
deprecated
func (*CreateAgentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAgentRequest.ProtoReflect.Descriptor instead.
func (*CreateAgentRequest) GetName ¶
func (x *CreateAgentRequest) GetName() string
func (*CreateAgentRequest) ProtoMessage ¶
func (*CreateAgentRequest) ProtoMessage()
func (*CreateAgentRequest) ProtoReflect ¶
func (x *CreateAgentRequest) ProtoReflect() protoreflect.Message
func (*CreateAgentRequest) Reset ¶
func (x *CreateAgentRequest) Reset()
func (*CreateAgentRequest) String ¶
func (x *CreateAgentRequest) String() string
type DeleteAgentReply ¶
type DeleteAgentReply struct {
// contains filtered or unexported fields
}
func (*DeleteAgentReply) Descriptor
deprecated
func (*DeleteAgentReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAgentReply.ProtoReflect.Descriptor instead.
func (*DeleteAgentReply) ProtoMessage ¶
func (*DeleteAgentReply) ProtoMessage()
func (*DeleteAgentReply) ProtoReflect ¶
func (x *DeleteAgentReply) ProtoReflect() protoreflect.Message
func (*DeleteAgentReply) Reset ¶
func (x *DeleteAgentReply) Reset()
func (*DeleteAgentReply) String ¶
func (x *DeleteAgentReply) String() string
type DeleteAgentRequest ¶
type DeleteAgentRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteAgentRequest) Descriptor
deprecated
func (*DeleteAgentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAgentRequest.ProtoReflect.Descriptor instead.
func (*DeleteAgentRequest) GetId ¶
func (x *DeleteAgentRequest) GetId() string
func (*DeleteAgentRequest) ProtoMessage ¶
func (*DeleteAgentRequest) ProtoMessage()
func (*DeleteAgentRequest) ProtoReflect ¶
func (x *DeleteAgentRequest) ProtoReflect() protoreflect.Message
func (*DeleteAgentRequest) Reset ¶
func (x *DeleteAgentRequest) Reset()
func (*DeleteAgentRequest) String ¶
func (x *DeleteAgentRequest) String() string
type GetAgentReply ¶
type GetAgentReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetAgentReply) Descriptor
deprecated
func (*GetAgentReply) Descriptor() ([]byte, []int)
Deprecated: Use GetAgentReply.ProtoReflect.Descriptor instead.
func (*GetAgentReply) GetId ¶
func (x *GetAgentReply) GetId() string
func (*GetAgentReply) GetName ¶
func (x *GetAgentReply) GetName() string
func (*GetAgentReply) ProtoMessage ¶
func (*GetAgentReply) ProtoMessage()
func (*GetAgentReply) ProtoReflect ¶
func (x *GetAgentReply) ProtoReflect() protoreflect.Message
func (*GetAgentReply) Reset ¶
func (x *GetAgentReply) Reset()
func (*GetAgentReply) String ¶
func (x *GetAgentReply) String() string
type GetAgentRequest ¶
type GetAgentRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetAgentRequest) Descriptor
deprecated
func (*GetAgentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAgentRequest.ProtoReflect.Descriptor instead.
func (*GetAgentRequest) GetId ¶
func (x *GetAgentRequest) GetId() string
func (*GetAgentRequest) ProtoMessage ¶
func (*GetAgentRequest) ProtoMessage()
func (*GetAgentRequest) ProtoReflect ¶
func (x *GetAgentRequest) ProtoReflect() protoreflect.Message
func (*GetAgentRequest) Reset ¶
func (x *GetAgentRequest) Reset()
func (*GetAgentRequest) String ¶
func (x *GetAgentRequest) String() string
type ListAgentReply ¶
type ListAgentReply struct { Results []*GetAgentReply `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListAgentReply) Descriptor
deprecated
func (*ListAgentReply) Descriptor() ([]byte, []int)
Deprecated: Use ListAgentReply.ProtoReflect.Descriptor instead.
func (*ListAgentReply) GetResults ¶
func (x *ListAgentReply) GetResults() []*GetAgentReply
func (*ListAgentReply) ProtoMessage ¶
func (*ListAgentReply) ProtoMessage()
func (*ListAgentReply) ProtoReflect ¶
func (x *ListAgentReply) ProtoReflect() protoreflect.Message
func (*ListAgentReply) Reset ¶
func (x *ListAgentReply) Reset()
func (*ListAgentReply) String ¶
func (x *ListAgentReply) String() string
type ListAgentRequest ¶
type ListAgentRequest struct { NameLike *string `protobuf:"bytes,1,opt,name=nameLike,proto3,oneof" json:"nameLike,omitempty"` // contains filtered or unexported fields }
func (*ListAgentRequest) Descriptor
deprecated
func (*ListAgentRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAgentRequest.ProtoReflect.Descriptor instead.
func (*ListAgentRequest) GetNameLike ¶
func (x *ListAgentRequest) GetNameLike() string
func (*ListAgentRequest) ProtoMessage ¶
func (*ListAgentRequest) ProtoMessage()
func (*ListAgentRequest) ProtoReflect ¶
func (x *ListAgentRequest) ProtoReflect() protoreflect.Message
func (*ListAgentRequest) Reset ¶
func (x *ListAgentRequest) Reset()
func (*ListAgentRequest) String ¶
func (x *ListAgentRequest) String() string
type UnimplementedAgentServer ¶
type UnimplementedAgentServer struct { }
UnimplementedAgentServer must be embedded to have forward compatible implementations.
func (UnimplementedAgentServer) CreateAgent ¶
func (UnimplementedAgentServer) CreateAgent(context.Context, *CreateAgentRequest) (*CreateAgentReply, error)
func (UnimplementedAgentServer) DeleteAgent ¶
func (UnimplementedAgentServer) DeleteAgent(context.Context, *DeleteAgentRequest) (*DeleteAgentReply, error)
func (UnimplementedAgentServer) GetAgent ¶
func (UnimplementedAgentServer) GetAgent(context.Context, *GetAgentRequest) (*GetAgentReply, error)
func (UnimplementedAgentServer) ListAgent ¶
func (UnimplementedAgentServer) ListAgent(context.Context, *ListAgentRequest) (*ListAgentReply, error)
func (UnimplementedAgentServer) UpdateAgent ¶
func (UnimplementedAgentServer) UpdateAgent(context.Context, *UpdateAgentRequest) (*UpdateAgentReply, error)
type UnsafeAgentServer ¶
type UnsafeAgentServer interface {
// contains filtered or unexported methods
}
UnsafeAgentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentServer will result in compilation errors.
type UpdateAgentReply ¶
type UpdateAgentReply struct {
// contains filtered or unexported fields
}
func (*UpdateAgentReply) Descriptor
deprecated
func (*UpdateAgentReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAgentReply.ProtoReflect.Descriptor instead.
func (*UpdateAgentReply) ProtoMessage ¶
func (*UpdateAgentReply) ProtoMessage()
func (*UpdateAgentReply) ProtoReflect ¶
func (x *UpdateAgentReply) ProtoReflect() protoreflect.Message
func (*UpdateAgentReply) Reset ¶
func (x *UpdateAgentReply) Reset()
func (*UpdateAgentReply) String ¶
func (x *UpdateAgentReply) String() string
type UpdateAgentRequest ¶
type UpdateAgentRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UpdateAgentRequest) Descriptor
deprecated
func (*UpdateAgentRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAgentRequest.ProtoReflect.Descriptor instead.
func (*UpdateAgentRequest) GetId ¶
func (x *UpdateAgentRequest) GetId() string
func (*UpdateAgentRequest) GetName ¶
func (x *UpdateAgentRequest) GetName() string
func (*UpdateAgentRequest) ProtoMessage ¶
func (*UpdateAgentRequest) ProtoMessage()
func (*UpdateAgentRequest) ProtoReflect ¶
func (x *UpdateAgentRequest) ProtoReflect() protoreflect.Message
func (*UpdateAgentRequest) Reset ¶
func (x *UpdateAgentRequest) Reset()
func (*UpdateAgentRequest) String ¶
func (x *UpdateAgentRequest) String() string