Documentation ¶
Index ¶
- Variables
- func ApplySettings(settings SettingsResponse) error
- func Auth(c *fiber.Ctx) error
- func Log(c *fiber.Ctx) error
- func Portal(c *fiber.Ctx) error
- func Portals(c *fiber.Ctx) error
- func SettingsGet(c *fiber.Ctx) error
- func SettingsPost(c *fiber.Ctx) error
- func Stats(c *fiber.Ctx) error
- func VerifyToken(c *fiber.Ctx) bool
- type Error
- type Response
- type SettingsInterfaceResponse
- type SettingsResponse
- type StatsHotspotResponse
- type StatsResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var StatsCPU *cpu.Stats
Functions ¶
func ApplySettings ¶
func ApplySettings(settings SettingsResponse) error
func SettingsGet ¶
func SettingsGet(c *fiber.Ctx) error
func SettingsPost ¶
func SettingsPost(c *fiber.Ctx) error
func VerifyToken ¶
func VerifyToken(c *fiber.Ctx) bool
Types ¶
type SettingsInterfaceResponse ¶
type SettingsInterfaceResponse struct { Mode string `json:"mode"` Ready bool `json:"ready"` SSID string `json:"ssid"` Password string `json:"password"` Channel int `json:"channel"` Portal bool `json:"portal"` PortalSource string `json:"portal_source" mapstructure:"portal_source" koanf:"portal_source"` }
type SettingsResponse ¶
type SettingsResponse struct {
Interface map[string]SettingsInterfaceResponse `json:"iface" mapstructure:"iface" koanf:"iface"`
}
type StatsHotspotResponse ¶
type StatsResponse ¶
type StatsResponse struct { Cpu float64 `json:"cpu"` MemTotal uint64 `json:"mem_total"` MemUsed uint64 `json:"mem_used"` Hotspot StatsHotspotResponse `json:"hotspot"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.