Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIRequestCreateConverter ¶
type APIRequestCreateConverter[T request.APIRequest, R common.EntityConstraint] interface { EntityOf(*T) R }
type APIRequestUpdateConverter ¶
type APIRequestUpdateConverter[T request.APIRequest, R common.EntityConstraint] interface { UpdatedEntityOf(ctx context.Context, request *T) (*R, error) }
type APIResponseConverter ¶
type APIResponseConverter[T any, R response.APIResponse] interface { ResponseOf(T) R }
type PageableResponseConverter ¶
type PageableResponseConverter[T any, R response.APIResponse] struct{}
func (PageableResponseConverter[T, R]) ResponseOf ¶
func (p PageableResponseConverter[T, R]) ResponseOf( page *models.Page[T], converter APIResponseConverter[T, R], ) *response.PageableResponse[R]
Click to show internal directories.
Click to hide internal directories.