Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
Transform(model ItemInterface, params ...ParamInterface) Interface
}
func TransformCollection ¶
func TransformCollectionWithCallback ¶
func TransformCollectionWithCallback(collection interface{}, resource Interface, callbackFunc func(model ParamInterface) ParamsInterface) []Interface
type ItemInterface ¶
type ItemInterface interface{}
type PaginationLinksResource ¶
type PaginationMetaResource ¶
type PaginationResource ¶
type PaginationResource struct { Data []Interface `json:"data"` Links PaginationLinksResource `json:"links"` Meta PaginationMetaResource `json:"meta"` }
func TransformPaginatedCollection ¶
func TransformPaginatedCollection(collection interface{}, resource Interface, pagination tools.Pagination) PaginationResource
func TransformPaginatedCollectionWithAdditionalFields ¶
func TransformPaginatedCollectionWithAdditionalFields(collection interface{}, resource Interface, pagination tools.Pagination, additional map[string]interface{}) PaginationResource
type ParamInterface ¶
type ParamInterface interface{}
type ParamsInterface ¶
type ParamsInterface []ParamInterface
Click to show internal directories.
Click to hide internal directories.