chore(config): rename Reader to Source struct

This commit is contained in:
Quentin McGaw
2022-08-26 15:16:51 +00:00
parent ae5cba519c
commit 8570e09eb9
28 changed files with 205 additions and 205 deletions

View File

@@ -4,15 +4,15 @@ import (
"github.com/qdm12/gluetun/internal/configuration/settings"
)
type Reader struct{}
type Source struct{}
func New() *Reader {
return &Reader{}
func New() *Source {
return &Source{}
}
func (r *Reader) String() string { return "secret files" }
func (s *Source) String() string { return "secret files" }
func (r *Reader) Read() (settings settings.Settings, err error) {
func (s *Source) Read() (settings settings.Settings, err error) {
settings.VPN, err = readVPN()
if err != nil {
return settings, err