api

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(s *fuego.Server, greeter Greeter)

func Spec

func Spec(path string) *openapi3.T

Types

type GreetRequest

type GreetRequest struct {
	Name string `json:"name"`
}

type GreetResponse

type GreetResponse struct {
	Greeting string `json:"greeting"`
}

type Greeter

type Greeter interface {
	Greet(name string) (string, error)
}

Jump to

Keyboard shortcuts

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