configuration

package
v0.0.0-...-124a127 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	SynologyConf    SynologyConf    `yaml:"synologyConfiguration" validate:"required"`
	GooglePhotoConf GooglePhotoConf `yaml:"googlePhotoConfiguration" validate:"required"`
	LoginOnly       bool
}

func LoadConfigurationFromFile

func LoadConfigurationFromFile(version, commit, date string) (*Conf, error)

type GooglePhotoConf

type GooglePhotoConf struct {
	ClientID         string `yaml:"clientID" validate:"required"`
	ClientSecret     string `yaml:"clientSecret" validate:"required"`
	LocalRedirectURL string `yaml:"localRedirectURL" validate:"required"`
}

func (GooglePhotoConf) LocalRedirectPath

func (g GooglePhotoConf) LocalRedirectPath() (*string, error)

func (GooglePhotoConf) LocalRedirectPort

func (g GooglePhotoConf) LocalRedirectPort() (int, error)

type SynologyConf

type SynologyConf struct {
	Url                     string `yaml:"url" validate:"required"`
	Username                string `yaml:"username" validate:"required"`
	Password                string `yaml:"password" validate:"required"`
	InsecureHttpsConnection bool   `yaml:"insecureHttpsConnection"`
	UploadedTagID           int    `yaml:"uploadedTagID" validate:"required"`
}

Jump to

Keyboard shortcuts

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