mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
38 lines
618 B
Go
38 lines
618 B
Go
package console
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type CmdStatus struct {
|
|
rpcMethod string
|
|
rpcParams string
|
|
rpcResult string
|
|
}
|
|
|
|
func (self *CmdStatus) Usage(name string) string {
|
|
return fmt.Sprintf("usage: %s status", name)
|
|
}
|
|
|
|
func (self *CmdStatus) defaults() error {
|
|
self.rpcMethod = "Responder.Status"
|
|
return nil
|
|
}
|
|
|
|
func (self *CmdStatus) FromArgs(args []string) error {
|
|
self.defaults()
|
|
return nil
|
|
}
|
|
|
|
func (self *CmdStatus) RpcMethod() string {
|
|
return self.rpcMethod
|
|
}
|
|
|
|
func (self *CmdStatus) RpcParams() interface{} {
|
|
return self.rpcParams
|
|
}
|
|
|
|
func (self *CmdStatus) RpcResult() interface{} {
|
|
return &self.rpcResult
|
|
}
|