config

package
v0.0.0-...-3bbfe4c Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port        string
	RedirectURL string
	Unsplash    UnsplashConfig
	Onedrive    OnedriveConfig
	Dropbox     DropboxConfig
	GoogleDrive GoogleDriveConfig
}

Config represents the all the environmental variables that should be present on start up.

var Conf *Config

Conf represents the application configuration.

func New

func New() *Config

New returns a new Config struct.

type DropboxConfig

type DropboxConfig struct {
	Key string
}

DropboxConfig represents Dropbox's API configuration variables.

type GoogleDriveConfig

type GoogleDriveConfig struct {
	Key    string
	Secret string
}

GoogleDriveConfig represents Google Drive's API configuration variables.

type OnedriveConfig

type OnedriveConfig struct {
	AppID  string
	Secret string
}

OnedriveConfig represents Onedrive's API configuration variables.

type UnsplashConfig

type UnsplashConfig struct {
	AccessKey string
}

UnsplashConfig represents Unsplash's API configuration variables.

Jump to

Keyboard shortcuts

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