Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
Auth config variables.
type Config ¶
type Config struct { HTTP HTTPConfig `mapstructure:"http"` Auth AuthConfig `mapstructure:"auth"` GraphQL GraphQLConfig `mapstructure:"graphql"` }
Config variables.
type CorsConfig ¶
type CorsConfig struct { Enable bool `mapstructure:"enable"` AllowOrigins string `mapstructure:"allow-origins"` AllowMethods string `mapstructure:"allow-methods"` AllowHeaders string `mapstructure:"allow-headers"` }
CORS config variables.
type GraphQLConfig ¶
type GraphQLConfig struct {
ComplexityLimit int `mapstructure:"complexity-limit"`
}
GraphQL config variables.
type HTTPConfig ¶
type HTTPConfig struct { Host string `mapstructure:"host"` Port string `mapstructure:"port"` Name string `mapstructure:"name"` Cors CorsConfig `mapstructure:"cors"` }
HTTP server config variables.
Click to show internal directories.
Click to hide internal directories.