frostfs-api-go-pogpp/tombstone/json.go
Leonard Lyubich 25da5d2e13 Add v2 version to go module name
Replace all elements from `v2` to root directory.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-11-17 15:29:33 +03:00

14 lines
356 B
Go

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