c5d4a13158
Change-Id: I2ebd4dbf993ff5c7864f3a3a665b5c8fc48aa7d1
25 lines
470 B
Go
25 lines
470 B
Go
// Copyright (C) 2020 Storj Labs, Incache.
|
|
// See LICENSE for copying information.
|
|
|
|
package nodeselection
|
|
|
|
import (
|
|
"storj.io/common/storj"
|
|
)
|
|
|
|
// Node defines necessary information for node-selection.
|
|
type Node struct {
|
|
storj.NodeURL
|
|
LastNet string
|
|
LastIPPort string
|
|
}
|
|
|
|
// Clone returns a deep clone of the selected node.
|
|
func (node *Node) Clone() *Node {
|
|
return &Node{
|
|
NodeURL: node.NodeURL,
|
|
LastNet: node.LastNet,
|
|
LastIPPort: node.LastIPPort,
|
|
}
|
|
}
|