Versions in this module Expand all Collapse all v1 v1.0.2 Feb 6, 2022 v1.0.1 Oct 16, 2020 Changes in this version + type BadAPIKey struct + Err error + func (c *BadAPIKey) Error() string + func (c *BadAPIKey) Unwrap() error + type BadAPIRequest struct + Err error + func (c *BadAPIRequest) Error() string + func (c *BadAPIRequest) Unwrap() error + type BadAPIResponse struct + Err error + func (c *BadAPIResponse) Error() string + func (c *BadAPIResponse) Unwrap() error + type Client struct + func New() *Client + func (c *Client) WithAPIKey(apiKey string) + func (c *Client) WithPrefixURI(prefixURI string) + func (c *Client) WithTimeout(timeout time.Duration) + func (c Client) CompanyName(mac string) (ResponseVendorName, error) + func (c Client) Lookup(mac string) (ResponseMACInfo, error) + type CompanyInfo struct + Company string + Found bool + IsPrivate bool + type HTTPClientError struct + Err error + func (c *HTTPClientError) Error() string + func (c *HTTPClientError) Unwrap() error + type MACInfo struct + Address string + BlockEnd string + BlockSize int + BlockStart string + BlockType string + Company string + Country string + Found bool + IsPrivate bool + IsRand bool + MacPrefix string + Updated string + type RateLimit struct + Limit int64 + Remaining int64 + Reset time.Time + type RateLimitsExceeded struct + Err error + Limit int64 + Reset time.Time + func (c *RateLimitsExceeded) Error() string + type ResponseMACInfo struct + RespTime time.Duration + type ResponseVendorName struct + RespTime time.Duration