Documentation ¶
Index ¶
- func ContainsString(needle string, haystack []string) bool
- func CountSQLResultRows(rows *sql.Rows) (cnt int)
- func DropNodelistIndex(DBPath string) (res bool, err error)
- func GetStorage(path string, store string) (db *sql.DB, err error)
- func InitApp() (app cli.App, err error)
- func NodeInfo(DBPath string) (err error)
- func SearchNodelist(DBPath string) (err error)
- type Address
- type FtnAddress
- func (address *FtnAddress) Dump2D() (addressDump string)
- func (address *FtnAddress) Dump3D() (addressDump string)
- func (address *FtnAddress) Dump5D() (addressDump string)
- func (address *FtnAddress) GetType() (addressType string, special bool)
- func (address *FtnAddress) Special() (res bool)
- func (address *FtnAddress) Type() (res string)
- type FtnPacket
- type Nodelist
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
ContainsString - method to define is string value in array
func CountSQLResultRows ¶
CountSQLResultRows - count the sql rows
func DropNodelistIndex ¶
DropNodelistIndex - Delete index from db
func GetStorage ¶
GetStorage - returns db for querying
func SearchNodelist ¶
SearchNodelist - Search for records in nodelist
Types ¶
type Address ¶
type Address interface { Dump2D() (addressDump string) Dump3D() (addressDump string) Dump5D() (addressDump string) }
Address - address operations interface
type FtnAddress ¶
type FtnAddress struct {
// contains filtered or unexported fields
}
FtnAddress - address object structure
func FormFtnAddress ¶
func FormFtnAddress(zone int, region int, net int, node int, point int, domain string) (address FtnAddress, err error)
FormFtnAddress - ints to address
func ParseFtnAddress ¶
func ParseFtnAddress(addr string) (address FtnAddress, err error)
ParseFtnAddress - parse ftn-address string to object FtnAddress
func (*FtnAddress) Dump2D ¶
func (address *FtnAddress) Dump2D() (addressDump string)
Dump2D - returns z:n, string
func (*FtnAddress) Dump3D ¶
func (address *FtnAddress) Dump3D() (addressDump string)
Dump3D - returns z:n/f(.p), string
func (*FtnAddress) Dump5D ¶
func (address *FtnAddress) Dump5D() (addressDump string)
Dump5D - returns z:n/f.p@domain, string
func (*FtnAddress) GetType ¶
func (address *FtnAddress) GetType() (addressType string, special bool)
GetType - returns type of parsed address (string) and special flag (bool)
func (*FtnAddress) Special ¶
func (address *FtnAddress) Special() (res bool)
Special - returns special flag, bool
func (*FtnAddress) Type ¶
func (address *FtnAddress) Type() (res string)
Type - returns address type, string
type FtnPacket ¶
type FtnPacket struct {
// contains filtered or unexported fields
}
FtnPacket - Anarchived fts-0001 packet
type Nodelist ¶
type Nodelist struct {
List []nodelistHost
}
Nodelist - a list of parsed nodelist lines
func ParseNodelist ¶
ParseNodelist - the main function