cfg

package
v0.0.0-...-941dbc7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "fileshare"
)

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(conf interface{}) error

Types

type CredentialType

type CredentialType bool
const (
	CredentialTypeWeb     CredentialType = true
	CredentialTypeDesktop CredentialType = false
)

type GoogleCredentials

type GoogleCredentials struct {
	ClientID     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`

	ProjectID string `json:"project_id"`
}

func LoadGoogleCredentials

func LoadGoogleCredentials(credentialsPath string, tp CredentialType) (GoogleCredentials, error)

Jump to

Keyboard shortcuts

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