ast

package
v0.0.0-...-6fe6848 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Comment    string
	Handler    string
	Method     string
	URI        string
	Input      string
	Output     string
	ValidToken bool
}

type Field

type Field struct {
	Comment string
	Name    string
	Type    string
	Tag     string
}

type Info

type Info struct {
	Author  string
	Email   string
	Version string
}

type Service

type Service struct {
	Comment string
	Name    string
	Apis    []Api
}

type Spec

type Spec struct {
	Comment string
	Info    Info
	Types   []Type
	Service Service
}

func Parse

func Parse(filename string) *Spec

func (Spec) Validate

func (spec Spec) Validate() error

type Type

type Type struct {
	Comment string
	Name    string
	Fields  []Field
}

Jump to

Keyboard shortcuts

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