Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ASNChecker ¶
type ASNChecker struct {
// contains filtered or unexported fields
}
func (*ASNChecker) Hash ¶
func (asnc *ASNChecker) Hash() string
type Client ¶
type Client struct {
IPToASN iptoasnv1.IpToASNServiceClient
// contains filtered or unexported fields
}
func (*Client) WithIPToASNService ¶
func (c *Client) WithIPToASNService(impl iptoasnv1.IpToASNServiceClient)
type GeoIPChecker ¶
type GeoIPChecker struct {
IPToASN iptoasnv1.IpToASNServiceClient
Countries map[string]struct{}
// contains filtered or unexported fields
}
func (*GeoIPChecker) Hash ¶
func (gipc *GeoIPChecker) Hash() string
type IPToASNWithCache ¶
type IPToASNWithCache struct {
// contains filtered or unexported fields
}
func NewIpToASNWithCache ¶
func NewIpToASNWithCache(next iptoasnv1.IpToASNServiceClient) *IPToASNWithCache
func (*IPToASNWithCache) Lookup ¶
func (ip2asn *IPToASNWithCache) Lookup(ctx context.Context, lr *iptoasnv1.LookupRequest, opts ...grpc.CallOption) (*iptoasnv1.LookupResponse, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.