frostfs-api-go/tombstone/json.go
Evgenii Stratonikov 1351b6656d Move to frostfs-api
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2022-12-12 17:40:48 +03:00

14 lines
366 B
Go

package tombstone
import (
"github.com/TrueCloudLab/frostfs-api-go/v2/rpc/message"
tombstone "github.com/TrueCloudLab/frostfs-api-go/v2/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))
}