Maint: internal/vpn package for vpn loop
This commit is contained in:
16
internal/vpn/status.go
Normal file
16
internal/vpn/status.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package vpn
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/qdm12/gluetun/internal/models"
|
||||
)
|
||||
|
||||
func (l *Loop) GetStatus() (status models.LoopStatus) {
|
||||
return l.statusManager.GetStatus()
|
||||
}
|
||||
|
||||
func (l *Loop) ApplyStatus(ctx context.Context, status models.LoopStatus) (
|
||||
outcome string, err error) {
|
||||
return l.statusManager.ApplyStatus(ctx, status)
|
||||
}
|
||||
Reference in New Issue
Block a user