Documentation
¶
Index ¶
- Variables
- func RegisterStatusServiceServer(s grpc.ServiceRegistrar, srv StatusServiceServer)
- type GetStatusIntervalRequest
- func (*GetStatusIntervalRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetStatusIntervalRequest) GetAgentName() string
- func (*GetStatusIntervalRequest) ProtoMessage()
- func (x *GetStatusIntervalRequest) ProtoReflect() protoreflect.Message
- func (x *GetStatusIntervalRequest) Reset()
- func (x *GetStatusIntervalRequest) String() string
- type GetStatusIntervalResponse
- func (*GetStatusIntervalResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStatusIntervalResponse) GetIntervalSeconds() int32
- func (*GetStatusIntervalResponse) ProtoMessage()
- func (x *GetStatusIntervalResponse) ProtoReflect() protoreflect.Message
- func (x *GetStatusIntervalResponse) Reset()
- func (x *GetStatusIntervalResponse) String() string
- type ReportStatusRequest
- func (*ReportStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReportStatusRequest) GetAgentName() string
- func (x *ReportStatusRequest) GetDetail() *structpb.Struct
- func (x *ReportStatusRequest) GetStatus() Status
- func (*ReportStatusRequest) ProtoMessage()
- func (x *ReportStatusRequest) ProtoReflect() protoreflect.Message
- func (x *ReportStatusRequest) Reset()
- func (x *ReportStatusRequest) String() string
- type ReportStatusResponse
- type Status
- type StatusServiceClient
- type StatusServiceServer
- type UnimplementedStatusServiceServer
- type UnsafeStatusServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Status_name = map[int32]string{ 0: "STATUS_UNSPECIFIED", 1: "STATUS_READY", 2: "STATUS_NOT_READY", } Status_value = map[string]int32{ "STATUS_UNSPECIFIED": 0, "STATUS_READY": 1, "STATUS_NOT_READY": 2, } )
Enum value maps for Status.
var File_status_proto_agent_status_proto protoreflect.FileDescriptor
var StatusService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "agent_status_proto.v1.StatusService", HandlerType: (*StatusServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ReportStatus", Handler: _StatusService_ReportStatus_Handler, }, { MethodName: "GetStatusInterval", Handler: _StatusService_GetStatusInterval_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "status/proto/agent_status.proto", }
StatusService_ServiceDesc is the grpc.ServiceDesc for StatusService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStatusServiceServer ¶
func RegisterStatusServiceServer(s grpc.ServiceRegistrar, srv StatusServiceServer)
Types ¶
type GetStatusIntervalRequest ¶
type GetStatusIntervalRequest struct {
AgentName string `protobuf:"bytes,1,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` // Agent name for future use for registration
// contains filtered or unexported fields
}
func (*GetStatusIntervalRequest) Descriptor
deprecated
func (*GetStatusIntervalRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusIntervalRequest.ProtoReflect.Descriptor instead.
func (*GetStatusIntervalRequest) GetAgentName ¶
func (x *GetStatusIntervalRequest) GetAgentName() string
func (*GetStatusIntervalRequest) ProtoMessage ¶
func (*GetStatusIntervalRequest) ProtoMessage()
func (*GetStatusIntervalRequest) ProtoReflect ¶
func (x *GetStatusIntervalRequest) ProtoReflect() protoreflect.Message
func (*GetStatusIntervalRequest) Reset ¶
func (x *GetStatusIntervalRequest) Reset()
func (*GetStatusIntervalRequest) String ¶
func (x *GetStatusIntervalRequest) String() string
type GetStatusIntervalResponse ¶
type GetStatusIntervalResponse struct {
IntervalSeconds int32 `protobuf:"varint,1,opt,name=interval_seconds,json=intervalSeconds,proto3" json:"interval_seconds,omitempty"` // Interval in seconds
// contains filtered or unexported fields
}
func (*GetStatusIntervalResponse) Descriptor
deprecated
func (*GetStatusIntervalResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusIntervalResponse.ProtoReflect.Descriptor instead.
func (*GetStatusIntervalResponse) GetIntervalSeconds ¶
func (x *GetStatusIntervalResponse) GetIntervalSeconds() int32
func (*GetStatusIntervalResponse) ProtoMessage ¶
func (*GetStatusIntervalResponse) ProtoMessage()
func (*GetStatusIntervalResponse) ProtoReflect ¶
func (x *GetStatusIntervalResponse) ProtoReflect() protoreflect.Message
func (*GetStatusIntervalResponse) Reset ¶
func (x *GetStatusIntervalResponse) Reset()
func (*GetStatusIntervalResponse) String ¶
func (x *GetStatusIntervalResponse) String() string
type ReportStatusRequest ¶
type ReportStatusRequest struct {
AgentName string `protobuf:"bytes,1,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` // Agent name to optionally call out on UI
Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=agent_status_proto.v1.Status" json:"status,omitempty"` // Binary ready/non-ready
Detail *structpb.Struct `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"` // For future use if the status is complex
// contains filtered or unexported fields
}
func (*ReportStatusRequest) Descriptor
deprecated
func (*ReportStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReportStatusRequest.ProtoReflect.Descriptor instead.
func (*ReportStatusRequest) GetAgentName ¶
func (x *ReportStatusRequest) GetAgentName() string
func (*ReportStatusRequest) GetDetail ¶
func (x *ReportStatusRequest) GetDetail() *structpb.Struct
func (*ReportStatusRequest) GetStatus ¶
func (x *ReportStatusRequest) GetStatus() Status
func (*ReportStatusRequest) ProtoMessage ¶
func (*ReportStatusRequest) ProtoMessage()
func (*ReportStatusRequest) ProtoReflect ¶
func (x *ReportStatusRequest) ProtoReflect() protoreflect.Message
func (*ReportStatusRequest) Reset ¶
func (x *ReportStatusRequest) Reset()
func (*ReportStatusRequest) String ¶
func (x *ReportStatusRequest) String() string
type ReportStatusResponse ¶
type ReportStatusResponse struct {
// contains filtered or unexported fields
}
func (*ReportStatusResponse) Descriptor
deprecated
func (*ReportStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReportStatusResponse.ProtoReflect.Descriptor instead.
func (*ReportStatusResponse) ProtoMessage ¶
func (*ReportStatusResponse) ProtoMessage()
func (*ReportStatusResponse) ProtoReflect ¶
func (x *ReportStatusResponse) ProtoReflect() protoreflect.Message
func (*ReportStatusResponse) Reset ¶
func (x *ReportStatusResponse) Reset()
func (*ReportStatusResponse) String ¶
func (x *ReportStatusResponse) String() string
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type StatusServiceClient ¶
type StatusServiceClient interface {
ReportStatus(ctx context.Context, in *ReportStatusRequest, opts ...grpc.CallOption) (*ReportStatusResponse, error)
GetStatusInterval(ctx context.Context, in *GetStatusIntervalRequest, opts ...grpc.CallOption) (*GetStatusIntervalResponse, error)
}
StatusServiceClient is the client API for StatusService 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 NewStatusServiceClient ¶
func NewStatusServiceClient(cc grpc.ClientConnInterface) StatusServiceClient
type StatusServiceServer ¶
type StatusServiceServer interface {
ReportStatus(context.Context, *ReportStatusRequest) (*ReportStatusResponse, error)
GetStatusInterval(context.Context, *GetStatusIntervalRequest) (*GetStatusIntervalResponse, error)
// contains filtered or unexported methods
}
StatusServiceServer is the server API for StatusService service. All implementations must embed UnimplementedStatusServiceServer for forward compatibility
type UnimplementedStatusServiceServer ¶
type UnimplementedStatusServiceServer struct {
}
UnimplementedStatusServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedStatusServiceServer) GetStatusInterval ¶
func (UnimplementedStatusServiceServer) GetStatusInterval(context.Context, *GetStatusIntervalRequest) (*GetStatusIntervalResponse, error)
func (UnimplementedStatusServiceServer) ReportStatus ¶
func (UnimplementedStatusServiceServer) ReportStatus(context.Context, *ReportStatusRequest) (*ReportStatusResponse, error)
type UnsafeStatusServiceServer ¶
type UnsafeStatusServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStatusServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StatusServiceServer will result in compilation errors.