config

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package config provides configuration for the screener-api.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// AppSecret is the app secret
	AppSecret string `yaml:"app-secret"`
	// AppID is the app id
	AppID string `yaml:"app-id"`
	// ChainalysisKey is the api key for chainalysis
	ChainalysisKey string `yaml:"chainalysis-key"`
	// ChainalysisURL is the url for chainalysis
	ChainalysisURL string `yaml:"chainalysis-url"`
	// BlacklistURL is the url to the blacklist file
	// this is applied to all rules and cannot be overridden
	BlacklistURL string `yaml:"blacklist-url"`
	// Port is the port to listen on
	Port int `yaml:"port"`
	// Database is the database configuration
	Database DatabaseConfig `yaml:"database"`
	// Severities are the severity levels for each address we want to screen
	RiskLevels []string `yaml:"risk-levels"`
	// Whitelist is a list of addresses to whitelist
	Whitelist []string `yaml:"whitelist"`
	// Blacklist is a list of addresses to blacklist
	Blacklist []string `yaml:"blacklist"`
}

Config is the configuration for the screener.

type DatabaseConfig

type DatabaseConfig struct {
	Type string `yaml:"type"`
	DSN  string `yaml:"dsn"` // Data Source Name
}

DatabaseConfig represents the configuration for the database.

Jump to

Keyboard shortcuts

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