Versions in this module Expand all Collapse all v1 v1.0.0 Mar 29, 2019 Changes in this version + func JsonapiCustomError(statusCode int, status, source, title, detail *string) (int, interface{}) + func JsonapiErrorResp(status int, msg string) (int, interface{}) + func JsonapiErrorsResp(status int, msges ...string) (int, interface{}) + func JsonapiResourceResp(status int, resType, resID string, attr interface{}) (int, interface{}) + func JsonapiResourcesResp(status int, resType, resID string, metaData interface{}, attrs ...interface{}) (int, interface{}) + func Log(logD LoggingData, level, event, msg string) + func LogNew(level, event, msg string) + func MountRoute(router *gin.RouterGroup) + type IncludeItem struct + Attributes interface{} + Type string + type ItemDataGen struct + Attributes interface{} + ID string + Type string + type JsonapiCreateEntityBody struct + Data struct{ ... } + type JsonapiDataGen struct + Data []*ItemDataGen + Meta interface{} + type JsonapiError struct + APIErrors []*JsonapiErrorItem + type JsonapiErrorItem struct + Detail string + Source string + Status string + Title string + type LoggingData struct + Env string + Event string + ID string + IP string + Level string + Message string + Raw string + RawInterface interface{} + Server string + Service string + Thread string + Timestamp string + type Meta struct + Max int64 + Total int64 + type Relationships struct + User RelationshipsUser + type RelationshipsUser struct + Data RelationshipsUserData + type RelationshipsUserData struct + ID string + Type string + type SampleEntity struct + Created time.Time + ID string + Name string + Status string + Updated time.Time + UserID string