JCS-pub/client/internal/services/agent.go

21 lines
612 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// services 包提供了与代理服务相关的功能。
package services
type AgentService struct {
*Service // Service 是嵌入的基服务类型为AgentService提供基本功能。
}
// AgentSvc 是Service类型的一个方法用于返回一个AgentService的实例。
// 该方法允许通过Service实例来访问或操作AgentService相关功能。
//
// 参数:
//
// svc *Service - 指向当前Service实例的指针。
//
// 返回值:
//
// *AgentService - 指向新创建的AgentService实例的指针。
func (svc *Service) AgentSvc() *AgentService {
return &AgentService{Service: svc}
}