chargers

package
v1.0.0-dev Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChargerS

type ChargerS struct {
	// contains filtered or unexported fields
}

ChargerS is performing charging

func NewChargerService

func NewChargerService(dm *engine.DataManager, filterS *engine.FilterS,
	cfg *config.CGRConfig, connMgr *engine.ConnManager) *ChargerS

func (*ChargerS) V1GetChargersForEvent

func (cS *ChargerS) V1GetChargersForEvent(ctx *context.Context, args *utils.CGREvent,
	rply *[]*utils.ChargerProfile) (err error)

V1GetChargersForEvent exposes the list of ordered matching ChargingProfiles for an event

func (*ChargerS) V1ProcessEvent

func (cS *ChargerS) V1ProcessEvent(ctx *context.Context, args *utils.CGREvent,
	reply *[]*ChrgSProcessEventReply) (err error)

V1ProcessEvent will process the event received via API and return list of events forked

type ChrgSProcessEventReply

type ChrgSProcessEventReply struct {
	ChargerSProfile string
	AlteredFields   []*attributes.FieldsAltered
	CGREvent        *utils.CGREvent
}

ChrgSProcessEventReply is the reply to processEvent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL