forked from TrueCloudLab/frostfs-api-go
Airat Arifullin
9789b79b1d
* Regenerate protobufs as APE specific type are defined as separate package; * Move `ape` package related utils methods from `apemanager`. Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
14 lines
360 B
Go
14 lines
360 B
Go
package ape
|
|
|
|
import (
|
|
ape "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/ape/grpc"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/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))
|
|
}
|