forked from TrueCloudLab/frostfs-api-go
Alex Vanin
f69d2ad83c
Due to source code relocation from GitHub. Signed-off-by: Alex Vanin <a.vanin@yadro.com>
14 lines
399 B
Go
14 lines
399 B
Go
package storagegroup
|
|
|
|
import (
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message"
|
|
storagegroup "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/storagegroup/grpc"
|
|
)
|
|
|
|
func (s *StorageGroup) MarshalJSON() ([]byte, error) {
|
|
return message.MarshalJSON(s)
|
|
}
|
|
|
|
func (s *StorageGroup) UnmarshalJSON(data []byte) error {
|
|
return message.UnmarshalJSON(s, data, new(storagegroup.StorageGroup))
|
|
}
|