Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Router *mux.Router
DB *gorm.DB
MartaClient clients.MartaClient
TwitterClient clients.TwitterClient
Options Options
}
func (*App) Initialize ¶
func (*App) InitializeSchema ¶
func (*App) MountStaticRoutes ¶
func (app *App) MountStaticRoutes()
type Options ¶
type Options struct {
TwitterClientID string `long:"twitter-client-id" env:"TWITTER_CLIENT_ID" description:"the client id for the twitter account"`
TwitterClientSecret string `long:"twitter-client-secret" env:"TWITTER_CLIENT_SECRET" description:"the client secret for the twitter account"`
MartaAPIKey string `long:"marta-api-key" env:"MARTA_API_KEY" description:"marta api key"`
TwitterCacheTTL int `` /* 130-byte string literal not displayed */
MartaCacheTTL int `long:"marta-cache-ttl" env:"MARTA_CACHE_TTL" default:"15" description:"how long we keep the marta responses" required:"true"`
DBConnectionString string `long:"db-connection-string" env:"DB_CONNECTION_STRING"`
AdminAPIKey string `long:"admin-api-key" env:"ADMIN_API_KEY" description:"admin api key"`
Servicedomain string `` /* 146-byte string literal not displayed */
RailRunner bool `long:"rail-runner" env:"RAIL_RUNNER" description:"enable the rail runner"`
}
Click to show internal directories.
Click to hide internal directories.