ga

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ga is just a package to hold the GenAPI instance

Index

Constants

This section is empty.

Variables

View Source
var (
	// Environment represents the current running environment
	Environment string
)
View Source
var GA = genapi.GenAPI{
	Name: "postmaster",
	OkqInfo: &genapi.OkqInfo{
		Optional: true,
	},
	MongoInfo: &genapi.MongoInfo{
		DBName:   "postmaster",
		Optional: true,
	},
	LeverParams: []lever.Param{
		{
			Name:        "--sendgrid-key",
			Description: "Sendgrid API Key",
		},
		{
			Name:        "--webhook-addr",
			Description: "Address to listen for webhooks from sendgrid on",
			Default:     "127.0.0.1:8993",
		},
		{
			Name:        "--webhook-pass",
			Description: "Password (basic auth) to require for the webhook",
			Default:     "",
		},
		{
			Name:        "--environment",
			Description: "Running environment. Only prod and staging webhooks are processed.",
			Default:     "dev",
		},
	},
	Init: func(g *genapi.GenAPI) {
		Environment, _ = g.ParamStr("--environment")
		if Environment == "" {
			llog.Fatal("--environment is required")
		}
	},
}

GA is an instance of the GenAPI for this rpc service

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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