config

package
v0.0.0-...-11eb756 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 1 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 {
	Sheets    []*ConfigSheets  `toml:"google_sheets"`
	OtherDocs *ConfigOtherDocs `toml:"other_docs"`
}

func Load

func Load(path string) (*Config, error)

Load configuration

type ConfigOtherDocs

type ConfigOtherDocs struct {
	Docs []string `toml:"otherDocs"`
}

ConfigOtherDocs struct

type ConfigSheets

type ConfigSheets struct {
	SheetID         string   `toml:"sheetID"`
	SecretJSONPath  string   `toml:"secretJSONPath"`
	SheetAdminRoles string   `toml:"rolesSheet"`
	SheetsAdmin     []string `toml:"adminSheets"`
	SheetsWhitelist []string `toml:"whitelistSheets"`
}

ConfigSheets Google sheets configuration

Jump to

Keyboard shortcuts

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