github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/tombstone/json.go (about)

     1  package tombstone
     2  
     3  import (
     4  	"github.com/TrueCloudLab/frostfs-api-go/v2/rpc/message"
     5  	tombstone "github.com/TrueCloudLab/frostfs-api-go/v2/tombstone/grpc"
     6  )
     7  
     8  func (s *Tombstone) MarshalJSON() ([]byte, error) {
     9  	return message.MarshalJSON(s)
    10  }
    11  
    12  func (s *Tombstone) UnmarshalJSON(data []byte) error {
    13  	return message.UnmarshalJSON(s, data, new(tombstone.Tombstone))
    14  }