plugin

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TagString = "gen"

Functions

func New

func New() *vine

func TrimString

func TrimString(s string, c string) string

Types

type Component

type Component struct {
	Name    string
	Kind    ComponentKind
	Service string
	Proto   *generator.MessageDescriptor
}

Component is description of generator.MessageDescriptor and converted OpenAPI3.0 data models (https://swagger.io/docs/specification/data-models/)

type ComponentKind

type ComponentKind int32
const (
	Auth ComponentKind = iota
	Request
	Response
	Error
)

type LinkComponents

type LinkComponents struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewLinkComponents

func NewLinkComponents() *LinkComponents

func (*LinkComponents) Push

func (l *LinkComponents) Push(c *Component)

func (*LinkComponents) Range

func (l *LinkComponents) Range(fn func(*Component))

type Tag

type Tag struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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