models

package
v0.0.0-...-a6621b9 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RateLimit RateLimitConfig
}

Config contém configurações gerais da aplicação

type Parameter

type Parameter struct {
	Name        string
	Type        string
	Description string
	Required    bool
}

Parameter representa um parâmetro da rota

type RateLimitConfig

type RateLimitConfig struct {
	RequestsPerMinute int
	TimeWindowSeconds int
}

RateLimitConfig contém configurações de rate limiting

type RequestBody

type RequestBody struct {
	Type   string
	Schema interface{}
}

RequestBody representa o corpo da requisição

type Response

type Response struct {
	StatusCode  int
	Type        string
	Description string
	Schema      interface{}
}

Response representa uma resposta da API

type RouteInfo

type RouteInfo struct {
	Path        string
	Method      string
	HandlerName string
	Version     string
	Description string
	Parameters  []Parameter
	QueryParams []Parameter
	Request     RequestBody
	Responses   []Response
}

RouteInfo contém informações sobre uma rota da API

Jump to

Keyboard shortcuts

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