config

package
v0.0.0-...-a2a2cd2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Overview

config package wraps configuration accessors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	GoogleClientId       string
	GoogleClientSecret   string
	Host                 string
	SSLHost              string
	StripeKey            string
	StripePublishableKey string
}

AppConfig is all global application configuration values It has a test mode and a production as per the datastore's appengine environment.

func NewAppConfig

func NewAppConfig() *AppConfig

NewAppConfig returns the AppConfig that matches the current environment (test or prod) as returned by appengine.IsDevAppServer()

Jump to

Keyboard shortcuts

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