agent_status

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_status_proto_agent_status_proto protoreflect.FileDescriptor
View Source
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 (*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
const (
	Status_STATUS_UNSPECIFIED Status = 0
	Status_STATUS_READY       Status = 1
	Status_STATUS_NOT_READY   Status = 2
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

func (Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

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.

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) ReportStatus

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.

Jump to

Keyboard shortcuts

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