Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachingTransport ¶
type CachingTransport struct {
// contains filtered or unexported fields
}
CachingTransport is a redis-based caching wrapper around the custom rate-limited ESITransport
func NewCachingTransport ¶
func NewCachingTransport(esiTransport *ESITransport, redisClient *redis.Client) *CachingTransport
NewCachingTransport generates a new custom transport
type ESITransport ¶
type ESITransport struct {
// contains filtered or unexported fields
}
ESITransport is a custom transport for rate-limiting requests to ESI
func NewESITransport ¶
func NewESITransport(userAgent string, timeout time.Duration, concurrencyLimit int64) *ESITransport
NewESITransport generates a new custom transport
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport is a custom transport for Element43 which simply sets the user agent
func NewTransport ¶
NewTransport generates a new custom transport
Click to show internal directories.
Click to hide internal directories.