Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoAvailableIPs = errors.New("no available IPs") ErrSubdomainInUse = errors.New("subdomain already in-use") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is used to get IPs from the server over HTTP
func NewHTTPClient ¶
func (Client) RegisterFallback ¶ added in v0.2.0
type Config ¶
type Config struct { Address string Domain string FallbackRoutes FallbackRoutes }
type FallbackRoutes ¶
FallbackRoutes maps a subdomain to an actual domain name that should be used when the local subdomain is not running on the server
type Manager ¶
type Manager struct { Config // contains filtered or unexported fields }
func (Manager) GetIP ¶
GetIP allocates and returns an IP address. It will keep it open until the context is closed
func (Manager) RegisterFallback ¶ added in v0.2.0
RegisterFallback allows registering a fallback domain that will be used if a Goblin plugin is not running
Click to show internal directories.
Click to hide internal directories.