Documentation ¶
Index ¶
- func NewTransport(cacheEngine engine.CacheEngine, opts ...Option) http.RoundTripper
- func WithBase(child http.RoundTripper) baseOption
- func WithCacheableStatusCodes(statusCodes []int) cacheableStatusCodesOption
- func WithExpiration(expiration time.Duration) expirationOption
- func WithLogger(logger *slog.Logger) loggerOption
- type Option
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransport ¶
func NewTransport(cacheEngine engine.CacheEngine, opts ...Option) http.RoundTripper
func WithBase ¶
func WithBase(child http.RoundTripper) baseOption
func WithCacheableStatusCodes ¶
func WithCacheableStatusCodes(statusCodes []int) cacheableStatusCodesOption
func WithExpiration ¶
func WithLogger ¶
Types ¶
Directories ¶
Path | Synopsis |
---|---|
cache
|
|
engine/mock
Package mock_engine is a generated GoMock package.
|
Package mock_engine is a generated GoMock package. |
internal
|
|
Click to show internal directories.
Click to hide internal directories.