2021-11-26 12:19:20 +00:00
|
|
|
package subnetevents
|
|
|
|
|
2023-03-07 13:38:26 +00:00
|
|
|
import subnetid "git.frostfs.info/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
|
|
|
|
}
|