Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAttribute ¶
func ParseAttribute(dp utils.DataProvider, attrType, path string, value utils.RSRParsers, roundingDec int, timeZone, layout string) ( out any, err error)
Types ¶
type AttrSProcessEventReply ¶
type AttrSProcessEventReply struct {
AlteredFields []*FieldsAltered
CGREvent *utils.CGREvent
// contains filtered or unexported fields
}
AttrSProcessEventReply reply used for proccess event
func (*AttrSProcessEventReply) Digest ¶
func (attrReply *AttrSProcessEventReply) Digest() (rplyDigest string)
Digest returns serialized version of alteredFields in AttrSProcessEventReply format fldName1:fldVal1,fldName2:fldVal2
func (*AttrSProcessEventReply) UniqueAlteredFields ¶
func (flds *AttrSProcessEventReply) UniqueAlteredFields() (unFlds utils.StringSet)
UniqueAlteredFields will return all altered fields without duplicates
type AttributeS ¶
type AttributeS struct {
// contains filtered or unexported fields
}
AttributeS the service for the API
func NewAttributeService ¶
func NewAttributeService(dm *engine.DataManager, filterS *engine.FilterS, cgrcfg *config.CGRConfig) *AttributeS
NewAttributeService returns a new AttributeService
func (*AttributeS) V1GetAttributeForEvent ¶
func (alS *AttributeS) V1GetAttributeForEvent(ctx *context.Context, args *utils.CGREvent, attrPrfl *utils.APIAttributeProfile) (err error)
V1GetAttributeForEvent returns the AttributeProfile that matches the event
func (*AttributeS) V1ProcessEvent ¶
func (alS *AttributeS) V1ProcessEvent(ctx *context.Context, args *utils.CGREvent, reply *AttrSProcessEventReply) (err error)
V1ProcessEvent proccess the event and returns the result
type FieldsAltered ¶
Click to show internal directories.
Click to hide internal directories.