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.
Click to show internal directories.
Click to hide internal directories.