Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowedHeaders = handlers.AllowedHeaders([]string{
"Content-Type", "Authorization",
})
AllowedHeaders is a list custom headers accepted by the API
View Source
var AllowedMethods = handlers.AllowedMethods([]string{
"GET", "POST", "PATCH", "DELETE",
})
AllowedMethods is a list containing all HTTP verb accepted by the API
View Source
var AllowedOrigins = handlers.AllowedOrigins([]string{
"http://www.melvin.la",
"http://orchid.melvin.la",
"http://orchid.melvin.la:3000",
})
AllowedOrigins is a list containing all origins allowed to hit the API
Functions ¶
Types ¶
type Args ¶
type Args struct { Port string `default:"5000"` PostgresURI string `required:"true" envconfig:"postgres_uri"` TMDbAPIKey string `envconfig:"tmdb_api_key"` LogEntriesToken string `envconfig:"logentries_token"` EmailAPIKey string `envconfig:"email_api_key"` EmailFrom string `envconfig:"email_default_from"` EmailTo string `envconfig:"email_default_to"` Debug bool `default:"false"` }
Args represents the app args
Click to show internal directories.
Click to hide internal directories.