Files
cgrates/timespans/storage_interface.go
2012-02-20 22:03:55 +02:00

17 lines
430 B
Go

package timespans
/*
Interface for storage providers.
*/
type StorageGetter interface {
Close()
GetActivationPeriods(string) ([]*ActivationPeriod, error)
SetActivationPeriods(string, []*ActivationPeriod)
GetDestination(string) (*Destination, error)
SetDestination(*Destination)
GetTariffPlan(string) (*TariffPlan, error)
SetTariffPlan(*TariffPlan)
GetUserBudget(string) (*UserBudget, error)
SetUserBudget(*UserBudget)
}