Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(path string) (err error)

Types

type Route

type Route struct {
	Path     string
	Methods  []string
	FuncName string
}

type Swagger

type Swagger struct {
	// TODO: Ignore `json:"protobufAny"`
	// TODO: Ignore `json:"runtimeStreamError"`
	Paths map[string]map[string]struct {
		EndpointName string `json:"operationId"`
		Parameters   []struct {
			In       string `json:"in"`
			Name     string `json:"name"`
			Required bool   `json:"required"`
			Type     string `json:"type"`
		} `json:"parameters"`
		Responses map[string]struct {
			Description string `json:"description"`
			Schema      struct {
				Reference string `json:"$ref"`
			} `json:"schema"`
		} `json:"responses"`
		Tags []string `json:"tags"`
	} `json:"paths"`
}

Source Files