Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
JWT JWTConfig `mapstructure:"jwt"`
}
Auth config variables.
type Config ¶
type Config struct { HTTP HTTPConfig `mapstructure:"http"` Service ServiceConfig `mapstructure:"service"` GraphQL GraphQLConfig `mapstructure:"graphql"` Auth AuthConfig }
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.
type ServiceConfig ¶
Services config variables.
Click to show internal directories.
Click to hide internal directories.