forked from TrueCloudLab/frostfs-sdk-go
15 lines
362 B
Go
15 lines
362 B
Go
|
package ape
|
||
|
|
||
|
import (
|
||
|
ape "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/ape/grpc"
|
||
|
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/rpc/message"
|
||
|
)
|
||
|
|
||
|
func (t *ChainTarget) MarshalJSON() ([]byte, error) {
|
||
|
return message.MarshalJSON(t)
|
||
|
}
|
||
|
|
||
|
func (t *ChainTarget) UnmarshalJSON(data []byte) error {
|
||
|
return message.UnmarshalJSON(t, data, new(ape.ChainTarget))
|
||
|
}
|