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

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