mediator

package
v0.0.0-...-48d1953 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2013 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FScsvCDR

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

func NewFScsvCDR

func NewFScsvCDR(cdrRow []string, accIdIdx, subjectIdx, reqtypeIdx, directionIdx, tenantIdx, torIdx,
	accountIdx, destinationIdx, answerTimeIdx, durationIdx int, cfg *config.CGRConfig) (*FScsvCDR, error)

func (*FScsvCDR) GetAccId

func (self *FScsvCDR) GetAccId() string

func (*FScsvCDR) GetAccount

func (self *FScsvCDR) GetAccount() string

func (*FScsvCDR) GetAnswerTime

func (self *FScsvCDR) GetAnswerTime() (time.Time, error)

func (*FScsvCDR) GetCdrHost

func (self *FScsvCDR) GetCdrHost() string

func (*FScsvCDR) GetCgrId

func (self *FScsvCDR) GetCgrId() string

func (*FScsvCDR) GetDestination

func (self *FScsvCDR) GetDestination() string

func (*FScsvCDR) GetDirection

func (self *FScsvCDR) GetDirection() string

func (*FScsvCDR) GetDuration

func (self *FScsvCDR) GetDuration() int64

func (*FScsvCDR) GetExtraFields

func (self *FScsvCDR) GetExtraFields() map[string]string

func (*FScsvCDR) GetFallbackSubj

func (self *FScsvCDR) GetFallbackSubj() string

func (*FScsvCDR) GetOrigId

func (self *FScsvCDR) GetOrigId() string

func (*FScsvCDR) GetReqType

func (self *FScsvCDR) GetReqType() string

func (*FScsvCDR) GetSubject

func (self *FScsvCDR) GetSubject() string

func (*FScsvCDR) GetTOR

func (self *FScsvCDR) GetTOR() string

func (*FScsvCDR) GetTenant

func (self *FScsvCDR) GetTenant() string

type Mediator

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

func NewMediator

func NewMediator(connector engine.Connector, storDb engine.DataStorage, cfg *config.CGRConfig) (m *Mediator, err error)

func (*Mediator) MediateCSVCDR

func (self *Mediator) MediateCSVCDR(cdrfn string) (err error)

Parse the files and get cost for every record

func (*Mediator) MediateDBCDR

func (self *Mediator) MediateDBCDR(cdr utils.CDR, db engine.DataStorage) error

func (*Mediator) TrackCDRFiles

func (self *Mediator) TrackCDRFiles() (err error)

Watch the specified folder for file moves and parse the files on events

Jump to

Keyboard shortcuts

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