Documentation ¶
Index ¶
Constants ¶
View Source
const TurnipDefSrc = "https://raw.githubusercontent.com/nyrahul/turnip/main/data-sources.json"
Variables ¶
This section is empty.
Functions ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.