Versions in this module Expand all Collapse all v1 v1.0.1 Oct 18, 2020 Changes in this version type Proxy + func (p *Proxy) Purge(addr net.Addr) error v1.0.0 Aug 12, 2020 Changes in this version + var ErrAPIResponseSuccessFalse = errors.New("api response success false") + var ErrClientNotFound = errors.New("client not found") + type IPEntry struct + Expire int64 + ID string + IP string + func (entry IPEntry) Fetch() (string, error) + func (entry IPEntry) Kill() error + type Proxy struct + API string + App string + CacheTTL time.Duration + Client *http.Client + Key string + func New(api string, app string, key string) *Proxy + func (p *Proxy) Kill(addr net.Addr) error + func (p *Proxy) Resolve(addr net.Addr) (string, error) + type Response struct + Message string + Success bool