frostfs-sdk-go/api/tombstone/json.go

15 lines
380 B
Go
Raw Normal View History

package tombstone
import (
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/rpc/message"
tombstone "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/tombstone/grpc"
)
func (s *Tombstone) MarshalJSON() ([]byte, error) {
return message.MarshalJSON(s)
}
func (s *Tombstone) UnmarshalJSON(data []byte) error {
return message.UnmarshalJSON(s, data, new(tombstone.Tombstone))
}