Documentation
¶
Index ¶
- func ApplyServerConfig(db store.IStore, tmplBox *rice.Box) echo.HandlerFunc
- func ContentTypeJson(next echo.HandlerFunc) 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 GetClient(db store.IStore) echo.HandlerFunc
- func GetClients(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 Login(db store.IStore) echo.HandlerFunc
- func LoginPage() echo.HandlerFunc
- func Logout() echo.HandlerFunc
- func MachineIPAddresses() echo.HandlerFunc
- func NewClient(db store.IStore) echo.HandlerFunc
- func RemoveClient(db store.IStore) echo.HandlerFunc
- func SaveWakeOnLanHost(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 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 ¶
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 DeleteWakeOnHost ¶
func EmailClient ¶
func EmailClient(db store.IStore, mailer emailer.Emailer, emailSubject, emailContent string) echo.HandlerFunc
EmailClient handler to sent the configuration via email
func GetClients ¶
GetClients handler return a list of Wireguard client data
func GetWakeOnLanHosts ¶
func GlobalSettingSubmit ¶
GlobalSettingSubmit handler to update the global settings
func MachineIPAddresses ¶
func MachineIPAddresses() echo.HandlerFunc
MachineIPAddresses handler to get local interface ip addresses
func SaveWakeOnLanHost ¶
func SetClientStatus ¶
SetClientStatus handler to enable / disable a client
func SuggestIPAllocation ¶
SuggestIPAllocation handler to get the list of ip address for client
func UpdateClient ¶
UpdateClient handler to update client information
func ValidSession ¶
func ValidSession(next echo.HandlerFunc) echo.HandlerFunc
func WakeOnHost ¶
func WireGuardClients ¶
WireGuardClients handler
func WireGuardServer ¶
WireGuardServer handler
func WireGuardServerInterfaces ¶
WireGuardServerInterfaces handler
func WireGuardServerKeyPair ¶
WireGuardServerKeyPair handler to generate private and public keys