methods

package
v0.0.0-...-1041bd6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAccount

func CreateAccount(c *gin.Context)

func CreateAccountDisclaimer

func CreateAccountDisclaimer(c *gin.Context)

func CreateAccountIntegrations

func CreateAccountIntegrations(c *gin.Context)

func CreateHotspot

func CreateHotspot(c *gin.Context)

func CreateUnit

func CreateUnit(c *gin.Context)

func CreateUser

func CreateUser(user models.User) int

func CreateVouchers

func CreateVouchers(c *gin.Context)

func DeleteAccount

func DeleteAccount(c *gin.Context)

func DeleteAccountIntegrations

func DeleteAccountIntegrations(c *gin.Context)

func DeleteAllVouchers

func DeleteAllVouchers(c *gin.Context)

func DeleteDisclaimer

func DeleteDisclaimer(c *gin.Context)

func DeleteHotspot

func DeleteHotspot(c *gin.Context)

func DeleteHotspotIntegrations

func DeleteHotspotIntegrations(c *gin.Context)

func DeleteUnit

func DeleteUnit(c *gin.Context)

func DeleteUser

func DeleteUser(c *gin.Context)

func DeleteUserExpired

func DeleteUserExpired(c *gin.Context)

func DeleteVoucher

func DeleteVoucher(c *gin.Context)

func GetAccount

func GetAccount(c *gin.Context)

func GetAccountDisclaimers

func GetAccountDisclaimers(c *gin.Context)

func GetAccountIntegrations

func GetAccountIntegrations(c *gin.Context)

func GetAccountPrefs

func GetAccountPrefs(c *gin.Context)

func GetAccountTypeGraph

func GetAccountTypeGraph(c *gin.Context)

func GetAccountTypePie

func GetAccountTypePie(c *gin.Context)

func GetAccounts

func GetAccounts(c *gin.Context)

func GetCurrentSessions

func GetCurrentSessions(c *gin.Context)

func GetDevice

func GetDevice(c *gin.Context)

func GetDevices

func GetDevices(c *gin.Context)

func GetHistoryAvgConnDuration

func GetHistoryAvgConnDuration(c *gin.Context)

func GetHistoryAvgConnTraffic

func GetHistoryAvgConnTraffic(c *gin.Context)

func GetHistoryAvgUserDuration

func GetHistoryAvgUserDuration(c *gin.Context)

func GetHistoryAvgUserTraffic

func GetHistoryAvgUserTraffic(c *gin.Context)

func GetHistorySMSHistory

func GetHistorySMSHistory(c *gin.Context)

func GetHistorySMSYear

func GetHistorySMSYear(c *gin.Context)

func GetHistorySessions

func GetHistorySessions(c *gin.Context)

func GetHistoryTraffic

func GetHistoryTraffic(c *gin.Context)

func GetHotspot

func GetHotspot(c *gin.Context)

func GetHotspotIntegrations

func GetHotspotIntegrations(c *gin.Context)

func GetHotspotMarketing

func GetHotspotMarketing(c *gin.Context)

func GetHotspotPrefs

func GetHotspotPrefs(c *gin.Context)

func GetHotspots

func GetHotspots(c *gin.Context)

func GetIntegrations

func GetIntegrations(c *gin.Context)

func GetSession

func GetSession(c *gin.Context)

func GetSessionHistory

func GetSessionHistory(c *gin.Context)

func GetSessions

func GetSessions(c *gin.Context)

func GetSessionsHistory

func GetSessionsHistory(c *gin.Context)

func GetSubscriptionPlans

func GetSubscriptionPlans(c *gin.Context)

func GetUnit

func GetUnit(c *gin.Context)

func GetUnits

func GetUnits(c *gin.Context)

func GetUser

func GetUser(c *gin.Context)

func GetUsers

func GetUsers(c *gin.Context)

func GetUsersExpired

func GetUsersExpired(c *gin.Context)

func GetVouchers

func GetVouchers(c *gin.Context)

func HealthCheck

func HealthCheck(c *gin.Context)

func Login

func Login(c *gin.Context)

func Logout

func Logout(c *gin.Context)

func SendTestFeedbackEmail

func SendTestFeedbackEmail(c *gin.Context)

func SendTestReviewEmail

func SendTestReviewEmail(c *gin.Context)

func StatsAccountTotal

func StatsAccountTotal(c *gin.Context)

func StatsDeviceTotal

func StatsDeviceTotal(c *gin.Context)

func StatsHotspotTotal

func StatsHotspotTotal(c *gin.Context)

func StatsSMSTotalForAccount

func StatsSMSTotalForAccount(c *gin.Context)

func StatsSMSTotalSentForHotspot

func StatsSMSTotalSentForHotspot(c *gin.Context)

func StatsSMSTotalSentForHotspotByHotspot

func StatsSMSTotalSentForHotspotByHotspot(c *gin.Context)

func StatsSessionTotal

func StatsSessionTotal(c *gin.Context)

func StatsUnitTotal

func StatsUnitTotal(c *gin.Context)

func StatsUserTotal

func StatsUserTotal(c *gin.Context)

func UpdateAccount

func UpdateAccount(c *gin.Context)

func UpdateAccountPrefs

func UpdateAccountPrefs(c *gin.Context)

func UpdateHotspot

func UpdateHotspot(c *gin.Context)

func UpdateHotspotIntegrations

func UpdateHotspotIntegrations(c *gin.Context)

func UpdateHotspotMarketing

func UpdateHotspotMarketing(c *gin.Context)

func UpdateHotspotPrefs

func UpdateHotspotPrefs(c *gin.Context)

func UpdateSMSThresholdForAccount

func UpdateSMSThresholdForAccount(c *gin.Context)

func UpdateSMSTotalForAccount

func UpdateSMSTotalForAccount(c *gin.Context)

func UpdateUser

func UpdateUser(c *gin.Context)

func UpdateUserExpired

func UpdateUserExpired(c *gin.Context)

func UpdateVouchers

func UpdateVouchers(c *gin.Context)

Types

type GraphResponse

type GraphResponse struct {
	Labels []string `json:"labels"`
	Set0   struct {
		Labels []string `json:"labels"`
		Data   []int    `db:"data" json:"data"`
		Name   string   `json:"name"`
	} `json:"set0"`
	Set1 struct {
		Labels []string `json:"labels"`
		Data   []int    `json:"data"`
		Name   string   `json:"name"`
	} `json:"set1"`
	Avg []int `json:"avg"`
}

type GraphResponses

type GraphResponses struct {
	Labels []string `json:"labels"`
	Sets   []struct {
		Labels []string `json:"labels"`
		Data   []int    `db:"data" json:"data"`
		Name   string   `json:"name"`
	} `json:"sets"`
}

type PieResponse

type PieResponse struct {
	Labels []string  `json:"labels"`
	Sets   []float64 `json:"sets"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL