Ability for each node to set their description describing what

service they provide.
This commit is contained in:
Tim Beatham
2023-11-01 11:58:10 +00:00
parent 8e50848043
commit d462d95d6d
12 changed files with 146 additions and 78 deletions

View File

@ -187,6 +187,17 @@ func (n *IpcHandler) Query(params ipc.QueryMesh, reply *string) error {
return nil
}
func (n *IpcHandler) PutDescription(description string, reply *string) error {
err := n.Server.MeshManager.SetDescription(description)
if err != nil {
return err
}
*reply = fmt.Sprintf("Set description to %s", description)
return nil
}
type RobinIpcParams struct {
CtrlServer *ctrlserver.MeshCtrlServer
}