parser

package
v0.0.0-...-a4e71ea Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 6 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToAPI

func ToAPI(rv reflect.Value, ar annotation.Result) (err error)

Types

type API

type API struct {
	Controller    string     `json:"controller"`
	Routes        []route    `json:"routes"`
	Authorization []string   `json:"authorization,omitempty"`
	Middleware    middleware `json:"middlewares,omitempty"`
	Response      []int      `json:"response,omitempty"`
	Version       string     `json:"version,omitempty"`
	Description   string     `json:"description,omitempty"`
	Validate      validate   `json:"validate,omitempty"`
}

Jump to

Keyboard shortcuts

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