client

package
v0.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 7 Imported by: 4

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL