Documentation
¶
Index ¶
- Variables
- func BytesFromFile(path string) []byte
- func GenMod(cfg, generatePath string) (*generate.Model, error)
- func GenServer(cfg, generatePath string) (*generate.Server, error)
- func GetHandlerOutputName(operID, restMethod string) string
- func GoFiles(pathPart string) []string
- func OperationCheck(oper *spec.Operation) bool
- func OperationsPath(part string) string
- func ParseOperations(pathItem spec.PathItem, operationalPath string) *models.Operation
- func RemoveDupes(sliceToCheck []string) []string
- func SpecParser(path string) (*spec.Swagger, error)
- type GenerationType
- type IDummy
- type ISwagger
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClientNotImplemented = errors.New("client option is not implemented yet")
View Source
var ErrGenTypeUndefined = errors.New("generation type is undefined. Must be: server/models/client`")
View Source
var ErrNilCfgModelsOpts = errors.New(" value: `Models` in your config_swagger is nil")
View Source
var ErrNilCfgServerOpts = errors.New(" value: `Server` in your config_swagger is nil")
View Source
var ErrNilGenerationPathOrOutput = errors.New("spec file path AND/OR generation output path are nil")
Functions ¶
func BytesFromFile ¶
func GetHandlerOutputName ¶ added in v0.0.3
func OperationCheck ¶ added in v0.0.3
func OperationsPath ¶ added in v0.0.4
func ParseOperations ¶ added in v0.0.3
func RemoveDupes ¶ added in v0.0.4
Types ¶
type GenerationType ¶
type GenerationType int
const ( ServerGen GenerationType = iota ModelsGen ClientGen // TODO )
func ParseGenType ¶
func ParseGenType(s string) GenerationType
func (GenerationType) String ¶
func (s GenerationType) String() string
type ISwagger ¶
func NewSwagger ¶
func NewSwagger(cfg *config_swagger.SwaggerCfg) ISwagger
Click to show internal directories.
Click to hide internal directories.