config

package
v0.0.0-...-3bd4a2f Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 2 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 {
	Server    Server   `json:"server"`
	GCP       Gcp      `json:"gcp"`
	Merchants []string `json:"merchants"`
}

func ReadConfig

func ReadConfig(fs afero.Fs, filename string) (Config, error)

type Gcp

type Gcp struct {
	ProjectID     string `json:"projectid"`
	Storagebucket string `json:"storagebucket"`
	Location      string `yaml:"location" envconfig:"LOCATION"`
	ProductSetId  string `yaml:"productsetid" envconfig:"PRODUCTSETID"`
}

type Server

type Server struct {
	Port string `json:"port"`
}

Jump to

Keyboard shortcuts

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