2020-11-13 14:20:24 +00:00
|
|
|
package storagegroup
|
|
|
|
|
|
|
|
import (
|
2022-12-09 11:16:24 +00:00
|
|
|
"github.com/TrueCloudLab/frostfs-api-go/v2/rpc/message"
|
|
|
|
storagegroup "github.com/TrueCloudLab/frostfs-api-go/v2/storagegroup/grpc"
|
2020-11-13 14:20:24 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func (s *StorageGroup) MarshalJSON() ([]byte, error) {
|
2021-03-12 12:57:23 +00:00
|
|
|
return message.MarshalJSON(s)
|
2020-11-13 14:20:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageGroup) UnmarshalJSON(data []byte) error {
|
2021-03-12 12:57:23 +00:00
|
|
|
return message.UnmarshalJSON(s, data, new(storagegroup.StorageGroup))
|
2020-11-13 14:20:24 +00:00
|
|
|
}
|