vtun

package
v0.0.178 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: AGPL-3.0 Imports: 14 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 *ClientWatcher) error

func Run added in v0.0.90

func Run(ctx context.Context) chan struct{}

Types

type ClientWatcher added in v0.0.175

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

func NewVTunClientWatcher added in v0.0.30

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

func (*ClientWatcher) ReloadTunnel added in v0.0.175

func (v *ClientWatcher) ReloadTunnel(id uint)

func (*ClientWatcher) Run added in v0.0.175

func (v *ClientWatcher) Run()

func (*ClientWatcher) Running added in v0.0.175

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

func (*ClientWatcher) Stop added in v0.0.175

func (v *ClientWatcher) Stop() error

Jump to

Keyboard shortcuts

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