convert

package
v0.0.0-...-77e6e3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *zap.Logger

Functions

This section is empty.

Types

type DriverType

type DriverType string
const (
	POSTMAN  DriverType = "postman"
	YAPI     DriverType = "yapi"
	SWAGGER  DriverType = "swagger"
	SWAGGER2 DriverType = "swagger2"
	SWAGGER3 DriverType = "swagger3"
	LZOS     DriverType = "lzos"
)

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(driverType DriverType, data []byte, filePath string) *Handler

func (*Handler) ToOpenapi

func (h *Handler) ToOpenapi() (*openapi3.T, error)

type IDriver

type IDriver interface {
	Doc(data []byte)
	// contains filtered or unexported methods
}

type Postman

type Postman struct {
	// contains filtered or unexported fields
}

func (*Postman) Data

func (d *Postman) Data(data []byte) (res interface{})

func (*Postman) Doc

func (d *Postman) Doc(data []byte)

type SwaggerV2

type SwaggerV2 struct {
	// contains filtered or unexported fields
}

func (*SwaggerV2) Data

func (d *SwaggerV2) Data(data []byte) (res interface{})

func (*SwaggerV2) Doc

func (d *SwaggerV2) Doc(data []byte)

type SwaggerV3

type SwaggerV3 struct {
	// contains filtered or unexported fields
}

func (*SwaggerV3) Data

func (d *SwaggerV3) Data(data []byte) (res interface{})

func (*SwaggerV3) Doc

func (d *SwaggerV3) Doc(data []byte)

type YApi

type YApi struct {
	// contains filtered or unexported fields
}

func (*YApi) Data

func (d *YApi) Data(data []byte) (res interface{})

func (*YApi) Doc

func (d *YApi) Doc(data []byte)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL