Versions in this module Expand all Collapse all v1 v1.1.0 Sep 28, 2026 Changes in this version + const SourceJSON + const SourceStructuredContent + const SourceText + const TransportHTTP + const TransportMCP + const ValidityRFC3339 + const ValiditySeconds + const ValidityUnix + type Cache struct + Name string + Partition []string + TTL string + type ClientOptions struct + HTTP *xhttp.Options + MCP *xmcp.Options + Transport string + func (o *ClientOptions) Validate() error + type Config struct + Cache *Cache + Client ClientOptions + Credential *Credential + Request []RequestMapping + Response Response + func DecodeConfig(data []byte) (*Config, error) + type Credential struct + Argument string + Header string + Resource string + type Mapper struct + func NewMapper(options ...Option) *Mapper + func (m *Mapper) CachedEntries(ctx context.Context, config *Config, provider xcache.Provider) (int, error) + func (m *Mapper) HTTP(ctx context.Context, config *Config, provider xhttp.Provider, ...) error + func (m *Mapper) Invalidate(ctx context.Context, config *Config, provider xcache.Provider, ...) (int, error) + func (m *Mapper) MCP(ctx context.Context, config *Config, provider xmcp.Provider, ...) error + type Option func(*Mapper) + func WithClock(clock func() time.Time) Option + func WithResources(resources fs.FS) Option + type RequestMapping struct + Argument string + Body *string + Header string + Input string + Path string + Query string + type Response struct + Mappings []ResponseMapping + Source string + Validity *Validity + type ResponseMapping struct + Optional bool + Output string + Path string + type StatusError struct + Method string + StatusCode int + URL string + func (e *StatusError) Error() string + type ToolError struct + Message string + Tool string + URL string + func (e *ToolError) Error() string + type Validity struct + Format string + Path string