api

package
v0.0.0-...-d48546e Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type City

type City struct {
	Name      string         `json:"name"`
	Total     int            `json:"total"`
	Providers map[string]int `json:"providers"`
	IPs       string         `json:"ips"`
}

type Continent

type Continent struct {
	Total     int       `json:"total"`
	Name      string    `json:"name"`
	Countries []Country `json:"countries"`
}

func (Continent) Len

func (c Continent) Len() int

func (Continent) Less

func (c Continent) Less(i, j int) bool

func (Continent) Swap

func (c Continent) Swap(i, j int)

type Country

type Country struct {
	Total     int        `json:"total"`
	Name      string     `json:"name"`
	Cities    []City     `json:"cities"`
	Providers []Provider `json:"providers"`
}

func (Country) Len

func (c Country) Len() int

func (Country) Less

func (c Country) Less(i, j int) bool

func (Country) Swap

func (c Country) Swap(i, j int)

type Location

type Location struct {
	Total      int         `json:"total"`
	Continents []Continent `json:"continents"`
}

func (Location) Len

func (c Location) Len() int

func (Location) Less

func (c Location) Less(i, j int) bool

func (Location) Swap

func (c Location) Swap(i, j int)

type MNAnalyzer

type MNAnalyzer struct {
	WebApiTotal int
	WebApiLink  string

	Collateral     int
	CurrencySymbol string

	IPv4Count  int
	IPv6Count  int
	IPTorCount int

	IPs []string

	ProtocolCount map[string]int
	ProviderCount map[string]int
	LocationCount map[string]map[string]map[string]City
}

func (*MNAnalyzer) Output

func (m *MNAnalyzer) Output() (mo MNAnalyzerOutput)

func (*MNAnalyzer) Populate

func (a *MNAnalyzer) Populate(mns []common.MNInfo)

type MNAnalyzerOutput

type MNAnalyzerOutput struct {
	WebApiLink     string     `json:"_webApiLink"`
	WebApiTotal    int        `json:"_webApiTotals"`
	IPv4           int        `json:"_ipv4Totals"`
	IPv6           int        `json:"_ipv6Totals"`
	IPTOR          int        `json:"_ipTORTotals"`
	ProviderTotals int        `json:"_providerTotals"`
	LocationTotals int        `json:"_locationTotals"`
	Collateral     int        `json:"_collateral"`
	CoinsLocked    int        `json:"_coinsLocked"`
	CurrencySymbol string     `json:"_sym"`
	Providers      []Provider `json:"providers"`
	Protocols      []Protocol `json:"protocols"`
	Locations      Location   `json:"locations"`
	IPs            []string   `json:"ips"`
}

type MerchantAnalyzerOutput

type MerchantAnalyzerOutput struct {
	MNAnalyzerOutput
	Merchants []TPOSContract `json:"merchants"`
}

type Protocol

type Protocol struct {
	Total int    `json:"total"`
	Name  string `json:"name"`
}

type Provider

type Provider struct {
	Total int    `json:"total"`
	Name  string `json:"name"`
}

type TPOSContract

type TPOSContract struct {
	Commission         float64 `json:"commission"`
	MerchantCountry    string  `json:"merchantCountry"`
	MerchantCity       string  `json:"merchantCity"`
	MerchantAddress    string  `json:"merchantAddress"`
	OwnerAddress       string  `json:"ownerAddress"`
	HashTPoSContractTx string  `json:"hashTPoSContractTx"`
	ActiveSince        string  `json:"activeSince"`
}

Jump to

Keyboard shortcuts

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