config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KeyCredentialsFile is the config name for Google access key
	KeyCredentialsFile = "credentialsFile"

	// KeyTokensFile is the config name for google generated token file
	KeyTokensFile = "tokensFile"

	// KeySheetURL is the config name for google-sheets url
	KeySheetURL = "sheetsURL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OAuthConfig         *oauth2.Config
	OAuthToken          *oauth2.Token
	GoogleSpreadsheetID string
	GoogleSheetID       int64
}

Config represent configuration needed for google-sheets

func Parse

func Parse(config map[string]string) (Config, error)

Parse attempts to parse plugins.Config into a Config struct

Jump to

Keyboard shortcuts

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