handler

package
v0.0.0-...-dba8875 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyServerConfig

func ApplyServerConfig(db store.IStore, tmplBox *rice.Box) echo.HandlerFunc

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 DeleteWakeOnHost(db store.IStore) echo.HandlerFunc

func DownloadClient

func DownloadClient(db store.IStore) echo.HandlerFunc

DownloadClient handler

func EmailClient

func EmailClient(db store.IStore, mailer emailer.Emailer, emailSubject, emailContent string) echo.HandlerFunc

EmailClient handler to sent the configuration via email

func GetClient

func GetClient(db store.IStore) echo.HandlerFunc

GetClient handler return a of Wireguard client data

func GetClients

func GetClients(db store.IStore) echo.HandlerFunc

GetClients handler return a list of Wireguard client data

func GetWakeOnLanHosts

func GetWakeOnLanHosts(db store.IStore) echo.HandlerFunc

func GlobalSettingSubmit

func GlobalSettingSubmit(db store.IStore) echo.HandlerFunc

GlobalSettingSubmit handler to update the global settings

func GlobalSettings

func GlobalSettings(db store.IStore) echo.HandlerFunc

GlobalSettings handler

func Health

func Health() echo.HandlerFunc

Health check handler

func Login

func Login(db store.IStore) echo.HandlerFunc

Login for signing in handler

func LoginPage

func LoginPage() echo.HandlerFunc

LoginPage handler

func Logout

func Logout() echo.HandlerFunc

Logout to log a user out

func MachineIPAddresses

func MachineIPAddresses() echo.HandlerFunc

MachineIPAddresses handler to get local interface ip addresses

func NewClient

func NewClient(db store.IStore) echo.HandlerFunc

NewClient handler

func RemoveClient

func RemoveClient(db store.IStore) echo.HandlerFunc

RemoveClient handler

func SaveWakeOnLanHost

func SaveWakeOnLanHost(db store.IStore) echo.HandlerFunc

func SetClientStatus

func SetClientStatus(db store.IStore) echo.HandlerFunc

SetClientStatus handler to enable / disable a client

func Status

func Status(db store.IStore) echo.HandlerFunc

Status handler

func SuggestIPAllocation

func SuggestIPAllocation(db store.IStore) echo.HandlerFunc

SuggestIPAllocation handler to get the list of ip address for client

func UpdateClient

func UpdateClient(db store.IStore) echo.HandlerFunc

UpdateClient handler to update client information

func ValidSession

func ValidSession(next echo.HandlerFunc) echo.HandlerFunc

func WakeOnHost

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

Types

type WakeOnLanHostSavePayload

type WakeOnLanHostSavePayload struct {
	Name          string `json:"name"`
	MacAddress    string `json:"mac_address"`
	OldMacAddress string `json:"old_mac_address"`
}

Jump to

Keyboard shortcuts

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