config

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 4 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 {
	Application struct {
		Name       string `yaml:"name"`
		LogLevel   string `yaml:"log-level"`
		WorkingDir string `yaml:"working-dir"`
		Editor     string `yaml:"editor"`
	}
	GSuite struct {
		Impersonate          string `yaml:"impersonate"`
		UseDomainAdminAccess bool   `yaml:"use-domain-admin-access"`
	} `yaml:"gsuite"`
	GoogleDrive struct {
		Credential string `yaml:"credential"`
		FolderId   string `yaml:"folder-id"`
	} `yaml:"google-drive"`
	Database struct {
		File string `yaml:"file"`
		Log  bool   `yaml:"log"`
	} `yaml:"database"`
	Plugin struct {
		DatabaseBackend string `yaml:"db-backend"`
		Commands        string `yaml:"commands"`
	} `yaml:"plugin"`
	Codec models.Codec `yaml:"codec"`
}

func New

func New(fileName string) (*Config, error)

Jump to

Keyboard shortcuts

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