From 3b3e0cbd721de07f58d988bd505b7cb04c9e2a0c Mon Sep 17 00:00:00 2001 From: TeoV Date: Tue, 27 Feb 2018 08:54:12 -0500 Subject: [PATCH] Renaming threshold_for_event -> thresholds_for_event (console command) --- ...hold_for_event.go => thresholds_for_event.go} | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) rename console/{threshold_for_event.go => thresholds_for_event.go} (75%) diff --git a/console/threshold_for_event.go b/console/thresholds_for_event.go similarity index 75% rename from console/threshold_for_event.go rename to console/thresholds_for_event.go index 6ebd68163..b29ade31d 100755 --- a/console/threshold_for_event.go +++ b/console/thresholds_for_event.go @@ -23,8 +23,8 @@ import ( ) func init() { - c := &CmdThresholdForEvent{ - name: "threshold_for_event", + c := &CmdThresholdsForEvent{ + name: "thresholds_for_event", rpcMethod: "ThresholdSv1.GetThresholdsForEvent", rpcParams: &engine.ArgsProcessEvent{}, } @@ -32,33 +32,33 @@ func init() { c.CommandExecuter = &CommandExecuter{c} } -type CmdThresholdForEvent struct { +type CmdThresholdsForEvent struct { name string rpcMethod string rpcParams *engine.ArgsProcessEvent *CommandExecuter } -func (self *CmdThresholdForEvent) Name() string { +func (self *CmdThresholdsForEvent) Name() string { return self.name } -func (self *CmdThresholdForEvent) RpcMethod() string { +func (self *CmdThresholdsForEvent) RpcMethod() string { return self.rpcMethod } -func (self *CmdThresholdForEvent) RpcParams(reset bool) interface{} { +func (self *CmdThresholdsForEvent) RpcParams(reset bool) interface{} { if reset || self.rpcParams == nil { self.rpcParams = &engine.ArgsProcessEvent{} } return self.rpcParams } -func (self *CmdThresholdForEvent) PostprocessRpcParams() error { +func (self *CmdThresholdsForEvent) PostprocessRpcParams() error { return nil } -func (self *CmdThresholdForEvent) RpcResult() interface{} { +func (self *CmdThresholdsForEvent) RpcResult() interface{} { var s *engine.Thresholds return &s }