Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NeedUseDragonfly ¶
NeedUseDragonfly is the default value for shouldUseDragonfly, which downloads all images layers with dragonfly.
Types ¶
type Option ¶
type Option func(rt *transport) *transport
Option is functional config for transport.
func WithCondition ¶
WithCondition configures how to decide whether to use dragonfly or not.
func WithDefaultBiz ¶
WithDefaultBiz sets default biz for http requests with X-Dragonfly-Biz Header
func WithDefaultFilter ¶
WithDefaultFilter sets default filter for http requests with X-Dragonfly-Filter Header
func WithPeerHost ¶
WithPeerHost sets the peerHost for transport
func WithPeerTaskManager ¶
func WithPeerTaskManager(peerTaskManager peer.TaskManager) Option
WithPeerTaskManager sets the peerTaskManager for transport
Click to show internal directories.
Click to hide internal directories.