vpn

package
v0.0.0-...-5e85e46 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SECRET string
View Source
var VPN_DRIVER_URL string

Functions

func DeviceBeforeCreate

func DeviceBeforeCreate(e *core.ModelEvent) error

func DeviceBeforeDelete

func DeviceBeforeDelete(e *core.ModelEvent) error

func DeviceBeforeUpdate

func DeviceBeforeUpdate(e *core.ModelEvent) error

func Init

func Init(app *pocketbase.PocketBase, secret string)

Types

type Device_Create

type Device_Create struct {
	ZTAddress string `json:"zt_address"`
}

type Device_Delete

type Device_Delete struct {
	ZTAddress string `json:"zt_address"`
}

type Device_Update

type Device_Update struct {
	ZTAddress  string `json:"zt_address"`
	DeviceType int    `json:"device_type"`
}

Jump to

Keyboard shortcuts

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