config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: AGPL-3.0, AGPL-3.0-or-later Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var C = Config{}

Functions

func IsTestUser

func IsTestUser(userName string) bool

Types

type Config

type Config struct {
	SiteUrl     string // eg. https://1backend.com
	StripeKey   string // stripe api key
	SendGridKey string
	// absolute path to folder containing files (assumes same structure as the repo)
	Path string
	// CAUTION! Uses the git user configured on the machine.
	ApiGeneration struct {
		Enabled            bool // API generation enabled
		GithubOrganisation string
		// user and personal token is used for repo creation when calling GitHub's HTTP API
		GithubUser          string
		GithubPersonalToken string
	}
	// Generated ts, node and ng API packages can be published to npmjs.org
	NpmPublication struct {
		Enabled bool
		// Org to publish the generated api clients under
		NpmOrganisation string
		// The token used to authenticate for npm publish
		NpmToken string
	}
	Sitemap struct {
		Enabled bool
		// defaults to /var/sitemap.xml.gz
		Path string
	}
}

Jump to

Keyboard shortcuts

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