Documentation
¶
Index ¶
Constants ¶
View Source
const ClientSecretFile = "data/client_secret.json"
ClientSecretFile is the default path to the Google OAuth credentials JSON file.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// GSheetsTitle is the title for a new Google Sheet (used when creating).
// Environment variable: GSHEETS_TITLE
GSheetsTitle string `koanf:"GSHEETS_TITLE"`
// GSheetsID is the ID of an existing Google Sheet to use.
// Environment variable: GSHEETS_ID
GSheetsID string `koanf:"GSHEETS_ID"`
// GSheetsName is the name of the sheet/tab within the spreadsheet.
// Environment variable: GSHEETS_NAME
GSheetsName string `koanf:"GSHEETS_NAME"`
// Rules and Labels are populated from embedded config, not environment variables.
Rules []api.Rule
Labels api.Labels
}
Config holds the application configuration loaded from environment variables.
Click to show internal directories.
Click to hide internal directories.