Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SourceWrapper ¶
type SourceWrapper interface {
// Next returns source interface according to strategy
Next() adtype.Source
// SetTimeout for sourcer
SetTimeout(timeout time.Duration)
}
SourceWrapper advertisement accessor interface
func NewRandomSourceWrapper ¶
func NewRandomSourceWrapper(sources ...adtype.Source) SourceWrapper
NewRandomSourceWrapper with roundrobin strategy
func NewSimpleWrapper ¶
func NewSimpleWrapper(source adtype.Source) SourceWrapper
NewSimpleWrapper object
func NewSourceWrapper ¶
func NewSourceWrapper(sources ...adtype.Source) SourceWrapper
NewSourceWrapper with roundrobin strategy
Click to show internal directories.
Click to hide internal directories.