mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated AgentRequest
This commit is contained in:
committed by
Dan Christian Bogos
parent
3b9b2895e0
commit
763710fb80
@@ -41,12 +41,12 @@ func (t *Task) Execute() error {
|
||||
}).Execute(nil, nil)
|
||||
}
|
||||
|
||||
// String implements config.DataProvider
|
||||
// String implements utils.DataProvider
|
||||
func (t *Task) String() string {
|
||||
return utils.ToJSON(t)
|
||||
}
|
||||
|
||||
// AsNavigableMap implements config.DataProvider
|
||||
// AsNavigableMap implements utils.DataProvider
|
||||
func (t *Task) AsNavigableMap(_ []*config.FCTemplate) (nm *config.NavigableMap, err error) {
|
||||
nm = config.NewNavigableMap(nil)
|
||||
nm.Set([]string{utils.UUID}, t.Uuid, false, false)
|
||||
@@ -55,13 +55,13 @@ func (t *Task) AsNavigableMap(_ []*config.FCTemplate) (nm *config.NavigableMap,
|
||||
return
|
||||
}
|
||||
|
||||
// FieldAsInterface implements config.DataProvider
|
||||
// FieldAsInterface implements utils.DataProvider
|
||||
// ToDo: support Action fields
|
||||
func (t *Task) FieldAsInterface(fldPath []string) (iface interface{}, err error) {
|
||||
return t.FieldAsString(fldPath)
|
||||
}
|
||||
|
||||
// FieldAsInterface implements config.DataProvider
|
||||
// FieldAsInterface implements utils.DataProvider
|
||||
// ToDo: support Action fields
|
||||
func (t *Task) FieldAsString(fldPath []string) (s string, err error) {
|
||||
if len(fldPath) == 0 {
|
||||
@@ -82,7 +82,7 @@ func (t *Task) FieldAsString(fldPath []string) (s string, err error) {
|
||||
}
|
||||
}
|
||||
|
||||
// RemoteHost implements config.DataProvider
|
||||
// RemoteHost implements utils.DataProvider
|
||||
func (t *Task) RemoteHost() (rh net.Addr) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user