RPC MediatorV1 moved to apier package for centralized documentation

This commit is contained in:
DanB
2014-05-11 13:20:25 +02:00
parent 7bc0003fcf
commit 23e2db7332
2 changed files with 4 additions and 3 deletions

View File

@@ -16,16 +16,17 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
*/
package mediator
package apier
import (
"fmt"
"github.com/cgrates/cgrates/mediator"
"github.com/cgrates/cgrates/utils"
"time"
)
type MediatorV1 struct {
Medi *Mediator
Medi *mediator.Mediator
}
// Remotely start mediation with specific runid, runs asynchronously, it's status will be displayed in syslog

View File

@@ -118,7 +118,7 @@ func startMediator(responder *engine.Responder, loggerDb engine.LogStorage, cdrD
return
}
engine.Logger.Info("Registering Mediator RPC service.")
server.RpcRegister(&mediator.MediatorV1{Medi: medi})
server.RpcRegister(&apier.MediatorV1{Medi: medi})
close(chanDone)
}