mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 06:38:45 +05:00
17 lines
430 B
Go
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)
|
|
}
|