Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConfigFileNotFound = errors.New("config file could not be found, defaults applied")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Web http.Config `yaml:"web"` Schema schema.Config `yaml:"schema"` Target proxy.Config `yaml:"target"` PersistedOperations trusteddocuments.Config `yaml:"persisted_operations"` ObfuscateValidationErrors bool `yaml:"obfuscate_validation_errors"` ObfuscateUpstreamErrors bool `yaml:"obfuscate_upstream_errors"` BlockFieldSuggestions block_field_suggestions.Config `yaml:"block_field_suggestions"` MaxTokens tokens.Config `yaml:"max_tokens"` MaxAliases aliases.Config `yaml:"max_aliases"` EnforcePost enforce_post.Config `yaml:"enforce_post"` MaxDepth max_depth.Config `yaml:"max_depth"` MaxBatch batch.Config `yaml:"max_batch"` AccessLogging accesslogging.Config `yaml:"access_logging"` Log log.Config `yaml:"log"` LogGraphqlErrors bool `yaml:"log_graphql_errors"` }
func NewConfig ¶
NewConfig initializes the runtime configuration. It uses defaults, and applies any user overrides to it If no configuration file can be found, the defaults will be returned the ErrConfigFileNotFound error if the configuration file can be found, but cannot be unmarshalled, an error will be returned
Click to show internal directories.
Click to hide internal directories.