Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoUnwrapperFound = errors.New("no unwrapper found")
)
Functions ¶
This section is empty.
Types ¶
type ChainEntry ¶
ChainEntry describes the transition from moving to one URL to the next, given the unwrapper that was used
type ChainedUnwrapper ¶
type ChainedUnwrapper struct {
// contains filtered or unexported fields
}
func (*ChainedUnwrapper) Err ¶
func (c *ChainedUnwrapper) Err() error
Err returns the last error set
func (*ChainedUnwrapper) Last ¶
func (c *ChainedUnwrapper) Last() *url.URL
Err returns the currently set URL
func (*ChainedUnwrapper) Next ¶
func (c *ChainedUnwrapper) Next() bool
Next will visit the next endpoint in the chain. Returns false when the end of the chain is reached or if there is an error
func (*ChainedUnwrapper) Visited ¶
func (c *ChainedUnwrapper) Visited() []ChainEntry
Err returns a slice of ChainEntry structs that describe the hops visited before finding the final URL
Click to show internal directories.
Click to hide internal directories.