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

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