config

package
v0.0.0-...-8b869b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartBackupService

func StartBackupService(appConfig AppConfigs)

Types

type AppConfigs

type AppConfigs struct {
	Db    Db    `yaml:"db" json:"db"`
	OAuth OAuth `yaml:"oAuth" json:"oAuth"`
}
var AppConfig AppConfigs

func GetConfig

func GetConfig() AppConfigs

type Connection

type Connection interface {
	Connect() *sql.DB
}

type Db

type Db struct {
	DbType string `yaml:"dbType" json:"dbType"`
	DbUrl  string `yaml:"dbUrl" json:"dbUrl"`
}

func (Db) Connect

func (db Db) Connect() *sql.DB

type OAuth

type OAuth struct {
	ClientID                string   `yaml:"clientId" json:"client_id"`
	ClientSecret            string   `yaml:"clientSecret" json:"client_secret"`
	RedirectURIs            []string `yaml:"redirectUris" json:"redirect_uris"`
	AuthURI                 string   `yaml:"authUri" json:"auth_uri"`
	TokenURI                string   `yaml:"tokenUri" json:"token_uri"`
	ProjectId               string   `yaml:"projectId" json:"project_id"`
	AuthProviderX509CertUrl string   `yaml:"authProviderX509CertUrl" json:"auth_provider_x509_cert_url"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL