/* Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments Copyright (C) ITsysCOM GmbH This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see */ package apis import ( "github.com/cgrates/birpc/context" "github.com/cgrates/cgrates/ees" "github.com/cgrates/cgrates/utils" ) func NewEeSv1(eesV1 *ees.EeS) *EeSv1 { return &EeSv1{ees: eesV1} } // EeSv1 exports RPC from RLs type EeSv1 struct { ees *ees.EeS ping } // ProcessEvent triggers exports on EEs side func (cS *EeSv1) ProcessEvent(ctx *context.Context, cgrEv *utils.CGREventWithEeIDs, rply *map[string]map[string]interface{}) error { return cS.ees.V1ProcessEvent(ctx, cgrEv, rply) } // ArchiveEventsInReply should archive the events sent with existing exporters. The zipped content should be returned back as a reply. func (cS *EeSv1) ArchiveEventsInReply(ctx *context.Context, args *ees.ArchiveEventsArgs, reply *[]byte) error { return cS.ees.V1ArchiveEventsInReply(ctx, args, reply) }