Added ability to query the JSON data store

This commit is contained in:
Tim Beatham
2023-10-30 19:02:28 +00:00
parent 579426e32d
commit e56780fdd4
9 changed files with 56 additions and 19 deletions

View File

@ -176,6 +176,17 @@ func (n *IpcHandler) GetDOT(meshId string, reply *string) error {
return nil
}
func (n *IpcHandler) Query(params ipc.QueryMesh, reply *string) error {
queryResponse, err := n.Server.Querier.Query(params.MeshId, params.Query)
if err != nil {
return err
}
*reply = string(queryResponse)
return nil
}
type RobinIpcParams struct {
CtrlServer *ctrlserver.MeshCtrlServer
}