Maint: split Go files in dns package

This commit is contained in:
Quentin McGaw (desktop)
2021-07-23 18:55:53 +00:00
parent d9ca0deb08
commit 9436f604ba
8 changed files with 322 additions and 267 deletions

19
internal/dns/status.go Normal file
View File

@@ -0,0 +1,19 @@
package dns
import (
"context"
"github.com/qdm12/gluetun/internal/models"
)
func (l *looper) GetStatus() (status models.LoopStatus) { return l.state.GetStatus() }
type StatusApplier interface {
ApplyStatus(ctx context.Context, status models.LoopStatus) (
outcome string, err error)
}
func (l *looper) ApplyStatus(ctx context.Context, status models.LoopStatus) (
outcome string, err error) {
return l.state.ApplyStatus(ctx, status)
}