meta

package
v0.1.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentMetaReportRequest

type AgentMetaReportRequest struct{}

AgentMetaReportRequest Agent元数据上报请求

type AgentMetaResponse

type AgentMetaResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

AgentMetaResponse Agent元数据响应

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(service *Service) *Handler

func (*Handler) Root

func (h *Handler) Root(c *gin.Context)

Root handles the root path - returns API information and version

type NodeMetaRequest

type NodeMetaRequest struct {
	ID string `uri:"id"`
}

NodeMetaRequest Node元数据请求

type NodeMetaResponse

type NodeMetaResponse struct {
	Meta interface{} `json:"meta"`
}

NodeMetaResponse Node元数据响应

type NodeMetaUpdateRequest

type NodeMetaUpdateRequest struct {
	ID   string      `uri:"id"`
	Meta interface{} `json:"meta"`
}

NodeMetaUpdateRequest Node元数据更新请求

type OpsAgentMetaResponse

type OpsAgentMetaResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

OpsAgentMetaResponse Ops Agent元数据响应

type OpsAgentMetaUpdateRequest

type OpsAgentMetaUpdateRequest struct {
	AgentID string      `json:"agentId"`
	Meta    interface{} `json:"meta"`
}

OpsAgentMetaUpdateRequest Ops Agent元数据更新请求

type OpsNodeMetaRequest

type OpsNodeMetaRequest struct {
	NodeID string `uri:"nodeId"`
}

OpsNodeMetaRequest Ops Node元数据请求

type OpsNodeMetaResponse

type OpsNodeMetaResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

OpsNodeMetaResponse Ops Node元数据响应

type OpsServiceMetadata

type OpsServiceMetadata struct {
	Processes      []OpsServiceProcess `json:"processes"`
	ProcessesCount int                 `json:"processesCount"`
}

OpsServiceMetadata Ops服务元数据

type OpsServiceProcess

type OpsServiceProcess struct {
	ServiceID    string   `json:"service_id"`
	Addr         string   `json:"addr"`
	Version      string   `json:"version"`
	LastSeenUnix int64    `json:"last_seen_unix"`
	FunctionIDs  []string `json:"function_ids"`
	Functions    int      `json:"functions"`
}

OpsServiceProcess Ops服务进程信息

type RootRequest

type RootRequest struct{}

RootRequest 根路径请求(空)

type RootResponse

type RootResponse struct {
	Code    int                    `json:"code"`
	Message string                 `json:"message"`
	Data    map[string]interface{} `json:"data"`
}

RootResponse 根路径响应

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(svcCtx *svc.ServiceContext) *Service

func (*Service) Root

func (s *Service) Root(ctx context.Context) (*RootResponse, error)

Root returns API information and version

Jump to

Keyboard shortcuts

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