renamed StorageGeter to DataStorage

This commit is contained in:
Radu Ioan Fericean
2012-08-25 10:02:33 +03:00
parent 2a1337f65b
commit e8a79e982e
15 changed files with 22 additions and 22 deletions

View File

@@ -34,12 +34,12 @@ type FSSessionManager struct {
buf *bufio.Reader
sessions []*Session
sessionDelegate *SessionDelegate
loggerDB timespans.StorageGetter
loggerDB timespans.DataStorage
address, pass string
delayFunc func() int
}
func NewFSSessionManager(storage timespans.StorageGetter) *FSSessionManager {
func NewFSSessionManager(storage timespans.DataStorage) *FSSessionManager {
return &FSSessionManager{loggerDB: storage}
}
@@ -176,7 +176,7 @@ func (sm *FSSessionManager) GetSessionDelegate() *SessionDelegate {
return sm.sessionDelegate
}
func (sm *FSSessionManager) GetDbLogger() timespans.StorageGetter {
func (sm *FSSessionManager) GetDbLogger() timespans.DataStorage {
return sm.loggerDB
}

View File

@@ -25,5 +25,5 @@ import (
type SessionManager interface {
DisconnectSession(*Session)
GetSessionDelegate() *SessionDelegate
GetDbLogger() timespans.StorageGetter
GetDbLogger() timespans.DataStorage
}