chore(internal/provider): rename all structs to Provider

This commit is contained in:
Quentin McGaw
2022-05-27 18:05:04 +00:00
parent a295269518
commit a91eb95456
55 changed files with 102 additions and 102 deletions

View File

@@ -8,7 +8,7 @@ import (
"github.com/qdm12/gluetun/internal/models"
)
type PIA struct {
type Provider struct {
servers []models.Server
randSource rand.Source
timeNow func() time.Time
@@ -18,9 +18,9 @@ type PIA struct {
}
func New(servers []models.Server, randSource rand.Source,
timeNow func() time.Time) *PIA {
timeNow func() time.Time) *Provider {
const jsonPortForwardPath = "/gluetun/piaportforward.json"
return &PIA{
return &Provider{
servers: servers,
timeNow: timeNow,
randSource: randSource,