route

package
v0.0.0-...-7201ecf Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx context.Context, mod Module, w io.Writer, opts Options) error

Types

type Module

type Module struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	URL       string `json:"url"`
	Version   string `json:"version"`
}

type Options

type Options struct {
	IncludeServiceName bool
}

type Rule

type Rule struct {
	Name       string
	PathRegex  string
	Retryable  bool
	Deprecated bool
	Timeout    string
}

type ServiceProfile

type ServiceProfile struct {
	Service   string
	Namespace string
	Method    string
	Routes    []Rule
}

Jump to

Keyboard shortcuts

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