[#74] apemanager: Generate protobufs for apemanager service

* Generate protobufs.
* Make marshallers, unmarshallers, json-encoders etc.
* Create message encoding/decoding unit-tests.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
Airat Arifullin 2024-04-24 16:00:37 +03:00 committed by Evgenii Stratonikov
parent 67c6f305b2
commit 387b850e5e
17 changed files with 3375 additions and 45 deletions

21
apemanager/grpc/types.go Normal file
View file

@ -0,0 +1,21 @@
package apemanager
func (t *ChainTarget) SetType(typ TargetType) {
t.Type = typ
}
func (t *ChainTarget) SetName(name string) {
t.Name = name
}
func (c *Chain) SetKind(kind isChain_Kind) {
c.Kind = kind
}
func (cr *Chain_Raw) SetRaw(raw []byte) {
cr.Raw = raw
}
func (cr *Chain_Raw) GetRaw() []byte {
return cr.Raw
}