Documentation ¶
Overview ¶
Package client provides a client for the screener-api.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScreenerClient ¶
type ScreenerClient interface {
ScreenAddress(ctx context.Context, ruleset, address string) (blocked bool, err error)
}
ScreenerClient is an interface for the Screener API.
func NewClient ¶
func NewClient(metricHandler metrics.Handler, screenerURL string) (ScreenerClient, error)
NewClient creates a new client for the Screener API.
func NewNoOpClient ¶ added in v0.0.13
func NewNoOpClient() (ScreenerClient, error)
NewNoOpClient creates a new no-op client for the Screener API. it returns false for every address.
Click to show internal directories.
Click to hide internal directories.