forked from TrueCloudLab/frostfs-api-go
Airat Arifullin
387b850e5e
* Generate protobufs. * Make marshallers, unmarshallers, json-encoders etc. * Create message encoding/decoding unit-tests. Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
14 lines
398 B
Go
14 lines
398 B
Go
package apemanager
|
|
|
|
import (
|
|
apemanager_grpc "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/apemanager/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(apemanager_grpc.ChainTarget))
|
|
}
|