openapi

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

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

func New

func New(path string, client Client) (*Catalog, error)

func (*Catalog) Tools

func (c *Catalog) Tools() []tool.Tool

type Client

type Client interface {
	Execute(ctx context.Context, method, path, contentType string, body io.Reader) ([]byte, error)
}

type Operation

type Operation struct {
	Name        string
	Description string

	Method string
	Path   string

	Queries []string

	Type   string
	Schema map[string]any
}

func (*Operation) Execute

func (o *Operation) Execute(ctx context.Context, client Client, parameters map[string]any) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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