request

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToEntitySlice

func ToEntitySlice[R Request[E], E any](requests []R) ([]*E, error)

Types

type BaseRequest

type BaseRequest[E any] struct {
	EntityInstance *E
}

func (*BaseRequest[E]) CopyToEntity

func (b *BaseRequest[E]) CopyToEntity(source any) (*E, error)

type Request

type Request[E any] interface {
	ToEntity() (*E, error)
}

Jump to

Keyboard shortcuts

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