turnip

package
v0.0.0-...-12f7fbd Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const TurnipDefSrc = "https://raw.githubusercontent.com/nyrahul/turnip/main/data-sources.json"

Variables

This section is empty.

Functions

func Setup

func Setup(dataSrc string) error

Types

type AddressData

type AddressData struct {
	Reason string
}

type BadMap

type BadMap struct {
	Map map[string]AddressData
	Ds  DataSource
}

Bad = Blocked ADdress Map

type DataSource

type DataSource struct {
	Name      string `json:"name"`
	Severity  string `json:"severity"`
	Link      string `json:"link"`
	Type      string `json:"type"`
	IsEnabled bool   `json:"enable"`
}

func AddressIsBlocked

func AddressIsBlocked(addr string) (*DataSource, string)

type DataSources

type DataSources struct {
	DataSources []DataSource `json:"sources"`
}

Jump to

Keyboard shortcuts

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