Module examples

Module examples 

Source
Expand description

Example plugin implementations

Provides production-ready plugin implementations for common use cases:

  • MetricsPlugin: Request/response metrics collection
  • RetryPlugin: Automatic retry with exponential backoff
  • CachePlugin: Response caching with TTL

Structsยง

CacheConfig
Configuration for caching behavior
CachePlugin
Plugin for caching responses with TTL
MethodMetrics
MetricsData
Request/response metrics data
MetricsPlugin
Plugin for collecting request/response metrics
RetryConfig
Configuration for retry behavior
RetryPlugin
Plugin for automatic retry with exponential backoff