Documentation ¶
Index ¶
- func Generate(config *config.Config, db *gorm.DB) string
- func GenerateAndSave(config *config.Config, db *gorm.DB) error
- func GenerateAndSaveClient(config *config.Config, db *gorm.DB) error
- func IsRunning() bool
- func Reload() error
- func ReloadAllClients(db *gorm.DB, watcher *VTunClientWatcher) error
- func Run(ctx context.Context) error
- type VTunClientWatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAndSaveClient ¶ added in v0.0.30
func ReloadAllClients ¶ added in v0.0.30
func ReloadAllClients(db *gorm.DB, watcher *VTunClientWatcher) 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
Click to show internal directories.
Click to hide internal directories.