server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TransformDataToSchema

func TransformDataToSchema[T any](data T) any

func TransformSchemaToData

func TransformSchemaToData[T any](schema any) T

Types

type Request

type Request[R any, B any, P any, Q any] func(data *RequestOptions[B, P, Q]) (result R, err error)

type RequestConfig

type RequestConfig[M any] struct {
	Path        string
	Status      int
	Middlewares []M
}

type RequestOptions

type RequestOptions[B any, P any, Q any] struct {
	Body   B
	Params P
	Query  Q
	Ctx    context.Context
}

Directories

Path Synopsis
adapters
gin

Jump to

Keyboard shortcuts

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