Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotReadyError = errors.New("not ready")
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection defines a connection
func (*Connection) Get ¶
func (c *Connection) Get(urlToGet string) (resp *http.Response, err error)
Get will get a URL
func (*Connection) PublicIP ¶
func (c *Connection) PublicIP() string
PublicIP returns the current public IP address, getting it if hasn't been set
type Option ¶
type Option func(c *Connection)
Option is the type all options need to adhere to
func OptionHeaders ¶
OptionDebug turns on debugging
Click to show internal directories.
Click to hide internal directories.