Documentation ¶
Index ¶
- func AboutPage() echo.HandlerFunc
- func ApplyServerConfig(db store.IStore, tmplDir fs.FS) echo.HandlerFunc
- func ContentTypeJson(next echo.HandlerFunc) echo.HandlerFunc
- func CreateUser(db store.IStore) echo.HandlerFunc
- func DeleteWakeOnHost(db store.IStore) echo.HandlerFunc
- func DownloadClient(db store.IStore) echo.HandlerFunc
- func EmailClient(db store.IStore, mailer emailer.Emailer, emailSubject, emailContent string) echo.HandlerFunc
- func Favicon() echo.HandlerFunc
- func GetClient(db store.IStore) echo.HandlerFunc
- func GetClients(db store.IStore) echo.HandlerFunc
- func GetHashesChanges(db store.IStore) echo.HandlerFunc
- func GetOrderedSubnetRanges() echo.HandlerFunc
- func GetUser(db store.IStore) echo.HandlerFunc
- func GetUsers(db store.IStore) echo.HandlerFunc
- func GetWakeOnLanHosts(db store.IStore) echo.HandlerFunc
- func GlobalSettingSubmit(db store.IStore) echo.HandlerFunc
- func GlobalSettings(db store.IStore) echo.HandlerFunc
- func Health() echo.HandlerFunc
- func LoadProfile() echo.HandlerFunc
- func Login(db store.IStore) echo.HandlerFunc
- func LoginPage() echo.HandlerFunc
- func Logout() echo.HandlerFunc
- func MachineIPAddresses() echo.HandlerFunc
- func NeedsAdmin(next echo.HandlerFunc) echo.HandlerFunc
- func NewClient(db store.IStore) echo.HandlerFunc
- func RefreshSession(next echo.HandlerFunc) echo.HandlerFunc
- func RemoveClient(db store.IStore) echo.HandlerFunc
- func RemoveUser(db store.IStore) echo.HandlerFunc
- func SaveWakeOnLanHost(db store.IStore) echo.HandlerFunc
- func SendTelegramClient(db store.IStore) echo.HandlerFunc
- func SetClientStatus(db store.IStore) echo.HandlerFunc
- func Status(db store.IStore) echo.HandlerFunc
- func SuggestIPAllocation(db store.IStore) echo.HandlerFunc
- func UpdateClient(db store.IStore) echo.HandlerFunc
- func UpdateUser(db store.IStore) echo.HandlerFunc
- func UsersSettings() echo.HandlerFunc
- func ValidSession(next echo.HandlerFunc) echo.HandlerFunc
- func WakeOnHost(db store.IStore) echo.HandlerFunc
- func WireGuardClients(db store.IStore) echo.HandlerFunc
- func WireGuardServer(db store.IStore) echo.HandlerFunc
- func WireGuardServerInterfaces(db store.IStore) echo.HandlerFunc
- func WireGuardServerKeyPair(db store.IStore) echo.HandlerFunc
- type WakeOnLanHostSavePayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyServerConfig ¶
ApplyServerConfig handler to write config file and restart Wireguard server
func ContentTypeJson ¶ added in v0.4.0
func ContentTypeJson(next echo.HandlerFunc) echo.HandlerFunc
ContentTypeJson checks that the requests have the Content-Type header set to "application/json". This helps against CSRF attacks.
func CreateUser ¶ added in v0.5.0
CreateUser to create new user
func DeleteWakeOnHost ¶ added in v0.3.7
func EmailClient ¶ added in v0.3.0
func EmailClient(db store.IStore, mailer emailer.Emailer, emailSubject, emailContent string) echo.HandlerFunc
EmailClient handler to send the configuration via email
func GetClients ¶ added in v0.2.5
GetClients handler return a JSON list of Wireguard client data
func GetHashesChanges ¶ added in v0.5.0
GetHashesChanges handler returns if database hashes have changed
func GetOrderedSubnetRanges ¶ added in v0.6.0
func GetOrderedSubnetRanges() echo.HandlerFunc
GetOrderedSubnetRanges handler to get the ordered list of subnet ranges
func GetWakeOnLanHosts ¶ added in v0.3.7
func GlobalSettingSubmit ¶
GlobalSettingSubmit handler to update the global settings
func LoadProfile ¶ added in v0.5.0
func LoadProfile() echo.HandlerFunc
LoadProfile to load user information
func MachineIPAddresses ¶
func MachineIPAddresses() echo.HandlerFunc
MachineIPAddresses handler to get local interface ip addresses
func NeedsAdmin ¶ added in v0.5.0
func NeedsAdmin(next echo.HandlerFunc) echo.HandlerFunc
func RefreshSession ¶ added in v0.6.0
func RefreshSession(next echo.HandlerFunc) echo.HandlerFunc
RefreshSession must only be used after ValidSession middleware RefreshSession checks if the session is eligible for the refresh, but doesn't check if it's fully valid
func RemoveUser ¶ added in v0.5.0
RemoveUser handler
func SaveWakeOnLanHost ¶ added in v0.3.7
func SendTelegramClient ¶ added in v0.6.0
SendTelegramClient handler to send the configuration via Telegram
func SetClientStatus ¶
SetClientStatus handler to enable / disable a client
func SuggestIPAllocation ¶
SuggestIPAllocation handler to get the list of ip address for client
func UpdateClient ¶ added in v0.2.5
UpdateClient handler to update client information
func UpdateUser ¶ added in v0.5.0
UpdateUser to update user information
func ValidSession ¶ added in v0.3.0
func ValidSession(next echo.HandlerFunc) echo.HandlerFunc
func WakeOnHost ¶ added in v0.3.7
func WireGuardClients ¶
WireGuardClients handler
func WireGuardServer ¶
WireGuardServer handler
func WireGuardServerInterfaces ¶
WireGuardServerInterfaces handler
func WireGuardServerKeyPair ¶
WireGuardServerKeyPair handler to generate private and public keys