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 *ClientWatcher) error
- func Run(ctx context.Context) chan struct{}
- type ClientWatcher
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 *ClientWatcher) error
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
Click to show internal directories.
Click to hide internal directories.