Documentation
¶
Index ¶
- type RuntimeFailure
- type RuntimeServer
- type Service
- func (s *Service) CachePartition() string
- func (s *Service) DiscoverAllRuntime(ctx context.Context, servers []market.ServerDescriptor) ([]RuntimeServer, []RuntimeFailure)
- func (s *Service) DiscoverDetail(ctx context.Context, server market.ServerDescriptor) (market.DetailResponse, error)
- func (s *Service) DiscoverServerRuntime(ctx context.Context, server market.ServerDescriptor) (RuntimeServer, error)
- func (s *Service) DiscoverServers(ctx context.Context) ([]market.ServerDescriptor, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuntimeFailure ¶
type RuntimeServer ¶
type RuntimeServer struct {
Server market.ServerDescriptor `json:"server"`
NegotiatedProtocolVersion string `json:"negotiated_protocol_version"`
Tools []transport.ToolDescriptor `json:"tools"`
Source string `json:"source"`
Degraded bool `json:"degraded"`
}
type Service ¶
type Service struct {
MarketClient *market.Client
Transport *transport.Client
Cache *cache.Store
Tenant string
AuthIdentity string
Logger *slog.Logger
// PerServerTimeout overrides the default per-server discovery timeout
// when greater than zero. Useful for tests and for callers that need a
// tighter or looser bound. When zero, defaultPerServerDiscoveryTimeout
// applies.
PerServerTimeout time.Duration
}
func NewService ¶
func (*Service) CachePartition ¶
func (*Service) DiscoverAllRuntime ¶
func (s *Service) DiscoverAllRuntime(ctx context.Context, servers []market.ServerDescriptor) ([]RuntimeServer, []RuntimeFailure)
func (*Service) DiscoverDetail ¶
func (s *Service) DiscoverDetail(ctx context.Context, server market.ServerDescriptor) (market.DetailResponse, error)
func (*Service) DiscoverServerRuntime ¶
func (s *Service) DiscoverServerRuntime(ctx context.Context, server market.ServerDescriptor) (RuntimeServer, error)
func (*Service) DiscoverServers ¶
Click to show internal directories.
Click to hide internal directories.