session manager and event interfaces

This commit is contained in:
Radu Ioan Fericean
2012-05-16 18:15:12 +03:00
parent 6af043d29b
commit 232693b73a
2 changed files with 60 additions and 0 deletions

36
sessionmanager/event.go Normal file
View File

@@ -0,0 +1,36 @@
/*
Rating system designed to be used in VoIP Carriers World
Copyright (C) 2012 Radu Ioan Fericean
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 <http://www.gnu.org/licenses/>
*/
package sessionmanager
import (
"time"
)
type Event interface {
New(string) Event
GetName() string
GetDirection() string
GetOrigId() string
GetSubject() string
GetDestination() string
GetTOR() string
GetUUID() string
GetCstmId() string
GetStartTime() (time.Time, error)
}

View File

@@ -0,0 +1,24 @@
/*
Rating system designed to be used in VoIP Carriers World
Copyright (C) 2012 Radu Ioan Fericean
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 <http://www.gnu.org/licenses/>
*/
package sessionmanager
type SessionManager interface {
DisconnectSession(*Session)
GetSessionDelegate() SessionDelegate
}