2021-11-26 12:19:20 +00:00
|
|
|
package subnetevents
|
|
|
|
|
2022-12-23 17:35:35 +00:00
|
|
|
import subnetid "github.com/TrueCloudLab/frostfs-sdk-go/subnet/id"
|
2021-11-26 12:19:20 +00:00
|
|
|
|
|
|
|
type idEvent struct {
|
|
|
|
id subnetid.ID
|
|
|
|
|
|
|
|
idErr error
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x idEvent) ReadID(id *subnetid.ID) error {
|
|
|
|
if x.idErr != nil {
|
|
|
|
return x.idErr
|
|
|
|
}
|
|
|
|
|
|
|
|
*id = x.id
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|