handler

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: MIT Imports: 19 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 DownloadClient

func DownloadClient(db store.IStore) echo.HandlerFunc

DownloadClient handler

func EmailClient added in v0.3.0

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

EmailClient handler to sent the configuration via email

func GetClient added in v0.2.5

func GetClient(db store.IStore) echo.HandlerFunc

GetClient handler return a of Wireguard client data

func GetClients added in v0.2.5

func GetClients(db store.IStore) echo.HandlerFunc

GetClients handler return a list of Wireguard client data

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 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 SetClientStatus

func SetClientStatus(db store.IStore) echo.HandlerFunc

SetClientStatus handler to enable / disable a client

func Status added in v0.3.1

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 added in v0.2.5

func UpdateClient(db store.IStore) echo.HandlerFunc

UpdateClient handler to update client information

func ValidSession added in v0.3.0

func ValidSession(next echo.HandlerFunc) 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

This section is empty.

Jump to

Keyboard shortcuts

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