Documentation
¶
Index ¶
- type AddRequest
- type ServerDetail
- type ServerStatus
- type Service
- func (s *Service) Add(ctx context.Context, req AddRequest) (ServerStatus, error)
- func (s *Service) Enable(ctx context.Context, serverID string, enabled bool) (ServerStatus, error)
- func (s *Service) List(ctx context.Context) ([]ServerStatus, error)
- func (s *Service) Reload(ctx context.Context) error
- func (s *Service) Remove(ctx context.Context, serverID string) error
- func (s *Service) Show(ctx context.Context, serverID string) (ServerDetail, error)
- func (s *Service) Test(ctx context.Context, serverID string) (ServerStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRequest ¶
type ServerDetail ¶
type ServerStatus ¶
type ServerStatus struct {
ID string
Name string
Enabled bool
AutoStart bool
Status extensionspkg.ExtensionStatus
Tools int
Message string
LastError extensionspkg.ErrorCode
CheckedAt string
ExtensionID string
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(workspace, configPath string, manager extensionspkg.Manager) *Service
func NewServiceWithMCPConfigPath ¶
func NewServiceWithMCPConfigPath(workspace, configPath, mcpConfigPath string, manager extensionspkg.Manager) *Service
func (*Service) Add ¶
func (s *Service) Add(ctx context.Context, req AddRequest) (ServerStatus, error)
Click to show internal directories.
Click to hide internal directories.