config

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: MIT Imports: 3 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 {
	Name         string `yaml:"name"`
	LogLevel     string `yaml:"log-level"`
	DatabaseFile string `yaml:"database-file"`
	GoogleCfg    `yaml:"google"`
}

func FromData

func FromData(yamlContent []byte) (*Config, error)

func FromFile

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

type GoogleCfg

type GoogleCfg struct {
	Admin          string   `yaml:"admin"`
	Domain         string   `yaml:"domain"`
	CustomerId     string   `yaml:"customer-id"`
	ProductId      string   `yaml:"product-id"`
	ProductSkuId   string   `yaml:"product-sku-id"`
	CredentialFile string   `yaml:"credential-file"`
	Scopes         []string `yaml:"scopes"`
}

Jump to

Keyboard shortcuts

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