Documentation ¶
Index ¶
- func Affiliations(c *gin.Context)
- func Contributors(c *gin.Context)
- func CreateResource(c *gin.Context)
- func FindAffiliations(c *gin.Context)
- func FindOrCreateLicense(rl *commonmeta.License) commonmeta.License
- func FirstResource(c *gin.Context)
- func Publishers(c *gin.Context)
- func Resources(c *gin.Context)
- type APIErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAffiliations ¶
func FindOrCreateLicense ¶
func FindOrCreateLicense(rl *commonmeta.License) commonmeta.License
FindCreateLicense takes a pointer to a commonmeta.License struct and queries the DB License table for the first entry that matches the URL of the provided License struct. It creates the License in the DB in case no matching record was found and calls itself for another attempt. It returns the retreived commonmeta.License if the query was successful.
Types ¶
Click to show internal directories.
Click to hide internal directories.