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
func CreateUser(db store.IStore) echo.HandlerFunc
CreateUser to create new user
func DeleteWakeOnHost ¶ added in v0.3.7
func DeleteWakeOnHost(db store.IStore) echo.HandlerFunc
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 Favicon ¶ added in v0.5.0
func Favicon() echo.HandlerFunc
func GetClient ¶ added in v0.2.5
func GetClient(db store.IStore) echo.HandlerFunc
GetClient handler returns a JSON object of Wireguard client data
func GetClients ¶ added in v0.2.5
func GetClients(db store.IStore) echo.HandlerFunc
GetClients handler return a JSON list of Wireguard client data
func GetHashesChanges ¶ added in v0.5.0
func GetHashesChanges(db store.IStore) echo.HandlerFunc
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 GetUser ¶ added in v0.5.0
func GetUser(db store.IStore) echo.HandlerFunc
GetUser handler returns a JSON object of single user
func GetUsers ¶ added in v0.5.0
func GetUsers(db store.IStore) echo.HandlerFunc
GetUsers handler return a JSON list of all users
func GetWakeOnLanHosts ¶ added in v0.3.7
func GetWakeOnLanHosts(db store.IStore) echo.HandlerFunc
func GlobalSettingSubmit ¶
func GlobalSettingSubmit(db store.IStore) echo.HandlerFunc
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
func RemoveUser(db store.IStore) echo.HandlerFunc
RemoveUser handler
func SaveWakeOnLanHost ¶ added in v0.3.7
func SaveWakeOnLanHost(db store.IStore) echo.HandlerFunc
func SendTelegramClient ¶ added in v0.6.0
func SendTelegramClient(db store.IStore) echo.HandlerFunc
SendTelegramClient handler to send the configuration via Telegram
func SetClientStatus ¶
func SetClientStatus(db store.IStore) echo.HandlerFunc
SetClientStatus handler to enable / disable a client
func SuggestIPAllocation ¶
func SuggestIPAllocation(db store.IStore) echo.HandlerFunc
SuggestIPAllocation handler to get the list of ip address for client
func UpdateClient ¶ added in v0.2.5
func UpdateClient(db store.IStore) echo.HandlerFunc
UpdateClient handler to update client information
func UpdateUser ¶ added in v0.5.0
func UpdateUser(db store.IStore) echo.HandlerFunc
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 WakeOnHost(db store.IStore) echo.HandlerFunc
func WireGuardClients ¶
func WireGuardClients(db store.IStore) echo.HandlerFunc
WireGuardClients handler
func WireGuardServer ¶
func WireGuardServer(db store.IStore) echo.HandlerFunc
WireGuardServer handler
func WireGuardServerInterfaces ¶
func WireGuardServerInterfaces(db store.IStore) echo.HandlerFunc
WireGuardServerInterfaces handler
func WireGuardServerKeyPair ¶
func WireGuardServerKeyPair(db store.IStore) echo.HandlerFunc
WireGuardServerKeyPair handler to generate private and public keys