Versions in this module Expand all Collapse all v0 v0.2.0 May 17, 2021 Changes in this version type Context + DownThreshold float64 + IsDownThreshold bool + type FilterByDown struct + Nodes []FullNode + Threshold float64 + func (f FilterByDown) Filter() ([]FullNode, error) type FullNode + Down float64 + Up float64 v0.1.0 May 16, 2021 Changes in this version + const DefaultChiaExecutableSuffix + type Chia interface + ListNodes func() (nodes []FullNode, err error) + RemoveNode func(nodeId string) error + type ChiaCli struct + ChiaExecutable string + func (c ChiaCli) ListNodes() (nodes []FullNode, err error) + func (c ChiaCli) RemoveNode(nodeId string) error + type Context struct + ChiaExecutable string + Done bool + Location string + func RunCli() (*Context, error) + type ExecCmd func(name string, arg ...string) (out []byte, err error) + type Filter interface + Filter func() ([]FullNode, error) + type FilterByLocation struct + LocationToFilter string + Nodes []FullNode + func (f FilterByLocation) Filter() ([]FullNode, error) + type FullNode struct + Ip string + LastConnect string + NodeId string + Ports string + UpDown string + func (f FullNode) IpLocation() (string, error) + type GetLocation func(ipV4 string) (string, error) + type Lookup interface + IpLocation func() (string, error)