controllers

package
v0.0.0-...-db47865 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VpnConnectionRequest

type VpnConnectionRequest struct {
	Identity string
	SourceIP string
}

VpnConnectionRequest is what is received from the Stringswan `ext-auth` script request

type VpnController

type VpnController struct {
	// contains filtered or unexported fields
}

func New

func New(db *gorm.DB, config *models.Config, notificationsManager *services.NotificationsManager) *VpnController

New creates an instance of the controller and sets its DB handle

func (*VpnController) CheckSession

func (v *VpnController) CheckSession(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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