doc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(arr []string, elem string) bool

func IndexOf

func IndexOf(arr []string, elem string) int

Types

type CommentRegistry

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

type Generator

type Generator interface {
	DocumentStruct(_package ...string) ([]spec.Schema, error)
}

func NewOpenapiGenerator

func NewOpenapiGenerator(filter *regexp.Regexp, tags string) Generator

type MetadataParser

type MetadataParser struct {
}

type SpecRegistry

type SpecRegistry map[string]spec.Schema

func (SpecRegistry) AddSchema

func (s SpecRegistry) AddSchema(key string, schema spec.Schema)

func (SpecRegistry) AddSchemaProp

func (s SpecRegistry) AddSchemaProp(props spec.SchemaProps)

func (SpecRegistry) Extend

func (s SpecRegistry) Extend(r SpecRegistry)

func (SpecRegistry) Values

func (s SpecRegistry) Values() (specs []spec.Schema)

type StructMetadata

type StructMetadata map[string]string

Jump to

Keyboard shortcuts

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