2020-12-10 08:30:14 +00:00
|
|
|
package tombstone
|
|
|
|
|
|
|
|
import (
|
2023-03-07 10:38:56 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message"
|
|
|
|
tombstone "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/tombstone/grpc"
|
2020-12-10 08:30:14 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func (s *Tombstone) MarshalJSON() ([]byte, error) {
|
2021-03-12 12:57:23 +00:00
|
|
|
return message.MarshalJSON(s)
|
2020-12-10 08:30:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *Tombstone) UnmarshalJSON(data []byte) error {
|
2021-03-12 12:57:23 +00:00
|
|
|
return message.UnmarshalJSON(s, data, new(tombstone.Tombstone))
|
2020-12-10 08:30:14 +00:00
|
|
|
}
|