model

package
v0.0.0-...-02590bd Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIErrorResponse

type APIErrorResponse struct {
	Error string `json:"error"`
}

type Collection

type Collection struct {
	Name   string  `json:"name"`
	Routes []Route `json:"routes"`
	Groups []Group `json:"groups"`
}

type Group

type Group struct {
	Name   string  `json:"name"`
	Routes []Route `json:"routes"`
}

type Route

type Route struct {
	Method     string            `json:"method"`
	Path       string            `json:"path"`
	Headers    map[string]string `json:"headers,omitempty"`
	StatusCode int               `json:"statusCode,omitempty"`
	Body       any               `json:"body,omitempty"`
}

func (*Route) GetStatusCode

func (r *Route) GetStatusCode() int

Jump to

Keyboard shortcuts

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