Adding aliases that automatically gets added

This commit is contained in:
Tim Beatham
2023-11-17 19:05:21 +00:00
parent 2c5289afb0
commit f6160fe138
16 changed files with 305 additions and 13 deletions

View File

@ -202,6 +202,17 @@ func (n *IpcHandler) PutDescription(description string, reply *string) error {
return nil
}
func (n *IpcHandler) PutAlias(alias string, reply *string) error {
err := n.Server.GetMeshManager().SetAlias(alias)
if err != nil {
return err
}
*reply = fmt.Sprintf("Set alias to %s", alias)
return nil
}
type RobinIpcParams struct {
CtrlServer ctrlserver.CtrlServer
}