package
0.0.0-20191119134328-9ff59ee4c896
Repository: https://github.com/dictybase/apihelpers.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
GetAllRelationships returns all relationships of data interface.
GetAttributeNames returns all JSAONAPI attribute names of data interface.
GetFilterAttributes gets all the JSONAPI attributes that are allowed to match filter query params.
GetTypeName gets the type name(type field) from a jsapi implementing interface.
MapFieldsToDbRow maps jsapi attributes to database row names.
MarshalToStructWrapper adds relationship information and returns a jsapi.Document structure for further json encoding.
MarshalWithPagination adds pagination information for collection resource.
# Structs
No description provided by the author
RelationshipLink is a container type for having information about relationship links.
No description provided by the author
No description provided by the author
# Interfaces
AttributeToDbRowMapper is an interface to provide mapping between jsapi attribute and database row names.
MarshalRelatedRelations is an interface for creating related relationship links.
MarshalSelfRelations is an interface for creating self relationship links.
RelationshipAttributes is an interface to provide attribute fields of relationship resources.