@@ -93,7 +93,7 @@ func (e YamlEncoder) encodePageBlocksC(ctx context.Context, p envoyx.EncodeParam
9393
9494 var aux any
9595 for i , b := range pg .Blocks {
96- aux , err = e .encodePageBlockC (ctx , p , tt , n , pg , i , b )
96+ aux , err = e .encodePageBlockC (ctx , p , tt , n , i , b )
9797 if err != nil {
9898 return
9999 }
@@ -107,7 +107,26 @@ func (e YamlEncoder) encodePageBlocksC(ctx context.Context, p envoyx.EncodeParam
107107 return out , nil
108108}
109109
110- func (e YamlEncoder ) encodePageBlockC (ctx context.Context , p envoyx.EncodeParams , tt envoyx.Traverser , n * envoyx.Node , pg * types.Page , index int , b types.PageBlock ) (_ any , err error ) {
110+ func (e YamlEncoder ) encodeNamespaceBlocksC (ctx context.Context , p envoyx.EncodeParams , tt envoyx.Traverser , n * envoyx.Node , pg * types.Namespace , bb types.PageBlocks ) (_ any , err error ) {
111+ out , _ := y7s .MakeSeq ()
112+
113+ var aux any
114+ for i , b := range pg .Blocks {
115+ aux , err = e .encodePageBlockC (ctx , p , tt , n , i , b )
116+ if err != nil {
117+ return
118+ }
119+
120+ out , err = y7s .AddSeq (out , aux )
121+ if err != nil {
122+ return
123+ }
124+ }
125+
126+ return out , nil
127+ }
128+
129+ func (e YamlEncoder ) encodePageBlockC (ctx context.Context , p envoyx.EncodeParams , tt envoyx.Traverser , n * envoyx.Node , index int , b types.PageBlock ) (_ any , err error ) {
111130
112131 switch b .Kind {
113132 case "RecordList" :
0 commit comments