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