discovery

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuntimeFailure

type RuntimeFailure struct {
	ServerKey string
	Err       error
}

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
}

func NewService

func NewService(marketClient *market.Client, transportClient *transport.Client, cacheStore *cache.Store) *Service

func (*Service) CachePartition

func (s *Service) CachePartition() string

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

func (s *Service) DiscoverServers(ctx context.Context) ([]market.ServerDescriptor, error)

Jump to

Keyboard shortcuts

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