Documentation
¶
Index ¶
Constants ¶
View Source
const CacheValidDuration = 24 * time.Hour
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
GetTools(serverName string) ([]CachedTool, error)
SetTools(serverName string, tools []CachedTool) error
Invalidate(serverName string) error
GetCacheDir() string
}
type CachedTool ¶
type CachedTool struct {
Name string `json:"name"`
Description string `json:"description"`
InputSchema json.RawMessage `json:"inputSchema"`
}
type FileCache ¶
type FileCache struct {
// contains filtered or unexported fields
}
func (*FileCache) GetCacheDir ¶
func (*FileCache) Invalidate ¶
func (*FileCache) ListCachedServers ¶
type NoOpCache ¶
type NoOpCache struct{}
func NewNoOpCache ¶
func NewNoOpCache() *NoOpCache
func (*NoOpCache) GetCacheDir ¶
func (*NoOpCache) Invalidate ¶
Click to show internal directories.
Click to hide internal directories.