Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { // OpenAPI options SpecificationURL string // HTTP server options CORSEnabled bool Port uint16 ResponseTimeout time.Duration // Application options Debug bool LogFormat string LogLevel logrus.Level // Generation options UseExamples data.UseExamplesEnum NullProbability float64 DefaultMinInt int64 DefaultMaxInt int64 DefaultMinFloat float64 DefaultMaxFloat float64 SuppressErrors bool }
func Load ¶
func Load(filename string) (*Configuration, error)
func (*Configuration) Dump ¶
func (config *Configuration) Dump() map[string]interface{}
type ErrInvalidConfiguration ¶
type ErrInvalidConfiguration struct {
ValidationError error
}
func (*ErrInvalidConfiguration) Error ¶
func (err *ErrInvalidConfiguration) Error() string
type ErrLoadFailed ¶
type ErrLoadFailed struct {
Previous error
}
func (*ErrLoadFailed) Error ¶
func (err *ErrLoadFailed) Error() string
func (*ErrLoadFailed) Unwrap ¶
func (err *ErrLoadFailed) Unwrap() error
Click to show internal directories.
Click to hide internal directories.