核心双向流:server 通过 ServerMessage 下发指令,node 用 NodeMessage 回响应或主动推送。
(ctx context.Context, opts ...grpc.CallOption)
| 30 | type NodeAgentClient interface { |
| 31 | // 核心双向流:server 通过 ServerMessage 下发指令,node 用 NodeMessage 回响应或主动推送。 |
| 32 | Session(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[NodeMessage, ServerMessage], error) |
| 33 | } |
| 34 | |
| 35 | type nodeAgentClient struct { |
no outgoing calls