json

package
v1.23.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(filePath string) astra.ServiceFunction

Generate will create the JSON output. It will marshal the JSONOutput struct and write it to a file.

Types

type JSONOutput

type JSONOutput struct {
	Routes     []astra.Route `json:"routes"`
	Components []astra.Field `json:"components"`
}

JSONOutput is the output of the JSON output. It will in essence be a copy of the service's output (routes and components).

Jump to

Keyboard shortcuts

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