forked from TrueCloudLab/frostfs-node
[#1817] network: Allow to use network addresses from the iterator
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
76893bdc50
commit
236414df49
21 changed files with 203 additions and 17 deletions
|
@ -39,6 +39,8 @@ type MultiAddressClient interface {
|
|||
type NodeInfo struct {
|
||||
addrGroup network.AddressGroup
|
||||
|
||||
externalAddrGroup network.AddressGroup
|
||||
|
||||
key []byte
|
||||
}
|
||||
|
||||
|
@ -52,6 +54,16 @@ func (x NodeInfo) AddressGroup() network.AddressGroup {
|
|||
return x.addrGroup
|
||||
}
|
||||
|
||||
// SetExternalAddressGroup sets an external group of network addresses.
|
||||
func (x *NodeInfo) SetExternalAddressGroup(v network.AddressGroup) {
|
||||
x.externalAddrGroup = v
|
||||
}
|
||||
|
||||
// ExternalAddressGroup returns a group of network addresses.
|
||||
func (x NodeInfo) ExternalAddressGroup() network.AddressGroup {
|
||||
return x.externalAddrGroup
|
||||
}
|
||||
|
||||
// SetPublicKey sets a public key in a binary format.
|
||||
//
|
||||
// Argument must not be mutated.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue