Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApUsecase ¶
type ApUsecase struct {
Config *config.Config
Repository *infrastructure.Repository
}
ApUsecase handles AP-related operations
func (*ApUsecase) ShowAp ¶
func (au *ApUsecase) ShowAp(controllers *[]config.Controller, isSecure *bool) []*ShowApData
ShowAp retrieves and merges AP ap from multiple controllers
func (*ApUsecase) ShowApTag ¶
func (au *ApUsecase) ShowApTag(controllers *[]config.Controller, isSecure *bool) []*ShowApTagData
ShowAp retrieves and merges AP ap from multiple controllers
type ClientUsecase ¶
type ClientUsecase struct {
Config *config.Config
Repository *infrastructure.Repository
}
ClientUsecase handles client-related operations
func (*ClientUsecase) ShowClient ¶
func (u *ClientUsecase) ShowClient(controllers *[]config.Controller, isSecure *bool) []*ShowClientData
ShowClient retrieves and merges client data from multiple controllers
type OverviewUsecase ¶
type OverviewUsecase struct {
Config *config.Config
Repository *infrastructure.Repository
}
OverviewUsecase handles overview operations
func (*OverviewUsecase) ShowOverview ¶
func (ou *OverviewUsecase) ShowOverview(controllers *[]config.Controller, isSecure *bool) []*ShowOverviewData
type ShowApCommonData ¶
type ShowApCommonData struct {
ApMac string `json:"ap-mac"`
Controller string `json:"controller"`
CapwapData ap.CapwapData `json:"capwap-ap"`
}
type ShowApData ¶
type ShowApData struct {
ShowApCommonData
LLDPnei ap.LldpNeigh `json:"lldp-neigh"`
ApOperData ap.ApOperData `json:"ap-oper-data"`
}
type ShowApTagData ¶
type ShowApTagData struct {
ShowApCommonData
}
type ShowClientData ¶
type ShowClientData struct {
ClientMac string `json:"client-mac"`
Controller string `json:"controller"`
CommonOperData client.CommonOperData `json:"common-oper-client"`
Dot11OperData client.Dot11OperData `json:"dot11-oper-client"`
TrafficStats client.TrafficStats `json:"traffic-stats"`
SisfDbMac client.SisfDbMac `json:"sisf-db-mac"`
DcInfo client.DcInfo `json:"dc-info"`
}
ShowClientData holds merged client data from various sources
type ShowOverviewData ¶
type ShowOverviewData struct {
ApMac string `json:"ap-mac"`
SlotID int `json:"slot-id"`
Controller string `json:"controller"`
RrmMeasurement rrm.RrmMeasurement `json:"rrm-measurement"`
RadioOperData ap.RadioOperData `json:"radio-oper-data"`
CapwapData ap.CapwapData `json:"capwap-ap"`
RfTag rf.RfTag `json:"rf-tag"`
}
type ShowWlanData ¶
type ShowWlanData struct {
TagName string `json:"tag-name"`
PolicyName string `json:"policy-name"`
WlanName string `json:"wlan-name"`
WlanCfgEntry wlan.WlanCfgEntry `json:"wlan-cfg-entry"`
WlanPolicy wlan.WlanPolicy `json:"wlan-policy"`
Controller string `json:"controller"`
}
ShowWlanData holds merged data from multiple controllers
type TokenUsecase ¶
type TokenUsecase struct {
Config *config.Config
Repository *infrastructure.Repository
}
TokenUsecase handles token generation operations
func (*TokenUsecase) GenerateBasicAuthToken ¶
func (u *TokenUsecase) GenerateBasicAuthToken() string
GenerateBasicAuthToken generates a basic authentication token using the username and password from the configuration
type Usecase ¶
type Usecase struct {
Config *config.Config
Repository *infrastructure.Repository
}
Usecase holds configuration and repository dependencies
func New ¶
func New(c *config.Config, r *infrastructure.Repository) Usecase
New creates a new instance of the Usecase struct
func (*Usecase) InvokeApUsecase ¶
InvokeApUsecase returns a new ApUsecase struct
func (*Usecase) InvokeClientUsecase ¶
func (u *Usecase) InvokeClientUsecase() *ClientUsecase
InvokeClientUsecase returns a new ClientUsecase struct
func (*Usecase) InvokeOverviewUsecase ¶
func (u *Usecase) InvokeOverviewUsecase() *OverviewUsecase
InvokeOverviewUsecase returns a new OverviewUsecase struct
func (*Usecase) InvokeTokenUsecase ¶
func (u *Usecase) InvokeTokenUsecase() *TokenUsecase
InvokeTokenUsecase returns a new TokenUsecase struct
func (*Usecase) InvokeWlanUsecase ¶
func (u *Usecase) InvokeWlanUsecase() *WlanUsecase
InvokeWlanUsecase returns a new WlanUsecase struct
type WlanUsecase ¶
type WlanUsecase struct {
Config *config.Config
Repository *infrastructure.Repository
}
WlanUsecase handles WLAN-related operations
func (*WlanUsecase) ShowWlan ¶
func (u *WlanUsecase) ShowWlan(controllers *[]config.Controller, isSecure *bool) []*ShowWlanData
ShowWlan retrieves and merges WLAN data from multiple controllers