Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbillsTariff ¶
type AbillsUser ¶
type App ¶
App is the main application struct
func (*App) GetTarifsFromAbills ¶
func (a *App) GetTarifsFromAbills() (tarifs []TariffProfile, err error)
func (App) GetUserList ¶
func (a App) GetUserList() ([]AbillsUser, error)
type Nas ¶
func (*Nas) GetUserCGNat ¶
GetUserCGNat fdpi_ctrl list all --policing показывает список пользователей и их скорости
func (*Nas) GetUserList ¶
func (n *Nas) GetUserList() (users []ShortScatUser, err error)
GetUserList returns a list of users from the NAS
func (*Nas) GetUserProfilesList ¶
GetUserProfilesList fdpi_ctrl list all --policing показывает список пользователей и их скорости
func (*Nas) SetTariffProfile ¶
func (n *Nas) SetTariffProfile(tp []TariffProfile) error
type ShortScatUser ¶
type TariffProfile ¶
type TariffProfile struct { Name string `json:"-"` Type string `json:"type"` Outbound TariffSubClass `json:"outbound"` Inbound TariffSubClass `json:"inbound"` }
TariffProfile is a struct that represents a tariff profile
type TariffRootClass ¶
type TariffRootClass struct { Class int `json:"class"` Rate string `json:"rate"` Ceil string `json:"ceil"` }
TariffRootClass is a struct that represents a root class of a tariff
type TariffSubClass ¶
type TariffSubClass struct { RootRate string `json:"root_rate"` RootCeil string `json:"root_ceil"` Classes []TariffRootClass `json:"classes"` }
TariffSubClass is a struct that represents a subclass of a tariff
Click to show internal directories.
Click to hide internal directories.