forked from TrueCloudLab/frostfs-node
Alex Vanin
20de74a505
Due to source code relocation from GitHub. Signed-off-by: Alex Vanin <a.vanin@yadro.com>
22 lines
462 B
Go
22 lines
462 B
Go
package subnetevents
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
subnetid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/subnet/id"
|
|
)
|
|
|
|
// common interface of subnet notifications with subnet ID.
|
|
type eventWithID interface {
|
|
// ReadID reads identifier of the subnet.
|
|
ReadID(*subnetid.ID) error
|
|
}
|
|
|
|
// an error which is returned on zero subnet operation attempt.
|
|
type zeroSubnetOp struct {
|
|
op string
|
|
}
|
|
|
|
func (x zeroSubnetOp) Error() string {
|
|
return fmt.Sprintf("zero subnet %s", x.op)
|
|
}
|