Documentation ¶
Index ¶
Constants ¶
View Source
const (
// AppName is the name of the app to be used as prefix of environment variables
AppName = "RANDFLIXAPI"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port int `default:"8080"` StorageKind string `default:"MemStore"` CorsAllowedOrigins []string `default:"*"` CorsAllowedHeaders []string `default:"Content-Type"` CorsAllowedMethods []string `default:"GET,OPTIONS"` }
Config describes the api configuration
Click to show internal directories.
Click to hide internal directories.