Files
indra/pkg/cfg/seed_address.go
2023-06-02 10:06:12 +01:00

20 lines
375 B
Go

package cfg
// SeedAddress is a form of the key and network address for seeds on a network.
type SeedAddress struct {
// ID is the p2p identifier (peer identity key).
ID string
// DNSAddress is the hostname of the seed node
DNSAddress string
}
func NewSeedAddress(dns string, id string) *SeedAddress {
return &SeedAddress{
ID: id,
DNSAddress: dns,
}
}