mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 05:37:05 +02:00
Use config.ServiceConfig across API
This commit is contained in:
parent
091b3c2f49
commit
9c363cc06d
27 changed files with 137 additions and 99 deletions
|
@ -20,8 +20,8 @@ import (
|
|||
"net/url"
|
||||
"time"
|
||||
|
||||
"github.com/spf13/viper"
|
||||
"go.uploadedlobster.com/scotty/internal/auth"
|
||||
"go.uploadedlobster.com/scotty/internal/config"
|
||||
"golang.org/x/oauth2"
|
||||
)
|
||||
|
||||
|
@ -32,7 +32,7 @@ type Backend interface {
|
|||
Name() string
|
||||
|
||||
// Initialize the backend from a config.
|
||||
FromConfig(config *viper.Viper) Backend
|
||||
FromConfig(config *config.ServiceConfig) Backend
|
||||
|
||||
// Return configuration options
|
||||
Options() *[]BackendOption
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue