vtun

package
v0.0.146 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(config *config.Config, db *gorm.DB) string

This file will generate the vtun.conf file

func GenerateAndSave

func GenerateAndSave(config *config.Config, db *gorm.DB) error

func GenerateAndSaveClient added in v0.0.30

func GenerateAndSaveClient(config *config.Config, db *gorm.DB) error

func IsRunning

func IsRunning() bool

func Reload

func Reload() error

func ReloadAllClients added in v0.0.30

func ReloadAllClients(db *gorm.DB, watcher *VTunClientWatcher) error

func Run added in v0.0.90

func Run(ctx context.Context) error

Types

type VTunClientWatcher added in v0.0.30

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

func NewVTunClientWatcher added in v0.0.30

func NewVTunClientWatcher(db *gorm.DB, config *config.Config) *VTunClientWatcher

func (*VTunClientWatcher) ReloadTunnel added in v0.0.35

func (v *VTunClientWatcher) ReloadTunnel(id uint)

func (*VTunClientWatcher) Run added in v0.0.30

func (v *VTunClientWatcher) Run()

func (*VTunClientWatcher) Running added in v0.0.35

func (v *VTunClientWatcher) Running(id uint) bool

func (*VTunClientWatcher) Stop added in v0.0.30

func (v *VTunClientWatcher) Stop() error

Jump to

Keyboard shortcuts

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