Help us shape the future of Go! Take the 2026 Go Developer Survey

simbaModels

package
v0.23.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultipartRequest

type MultipartRequest[RequestParams any] struct {
	Params RequestParams
	Reader *multipart.Reader
}

type NoBody

type NoBody struct {
}

NoBody is an empty struct used to represent no body

type NoParams

type NoParams struct {
}

NoParams is an empty struct used to represent no params

type Request

type Request[RequestBody any, RequestParams any] struct {
	Params RequestParams
	Body   RequestBody
}

Request represents a HTTP Request

type RequestIdMode

type RequestIdMode string
const (
	AcceptFromHeader RequestIdMode = "AcceptFromHeader"
	AlwaysGenerate   RequestIdMode = "AlwaysGenerate"
)

func (RequestIdMode) String

func (r RequestIdMode) String() string

type Response

type Response[ResponseBody any] struct {
	Headers http.Header
	Cookies []*http.Cookie
	Body    ResponseBody
	Status  int
}

Response represents a HTTP response

Jump to

Keyboard shortcuts

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