Versions in this module Expand all Collapse all v0 v0.1.1 May 26, 2019 Changes in this version + const AnnotationAttribute + const AnnotationAttributeFull + const AnnotationClientID + const AnnotationClosedBracket + const AnnotationDefault + const AnnotationFieldType + const AnnotationFilterKey + const AnnotationFlags + const AnnotationForeignKey + const AnnotationForeignKeyFull + const AnnotationForeignKeyFullS + const AnnotationHidden + const AnnotationI18n + const AnnotationID + const AnnotationISO8601 + const AnnotationLanguage + const AnnotationManyToMany + const AnnotationName + const AnnotationNestedField + const AnnotationNestedSeperator + const AnnotationNeuron + const AnnotationNoFilter + const AnnotationNotSortable + const AnnotationOmitEmpty + const AnnotationOpenedBracket + const AnnotationPrimary + const AnnotationPrimaryFull + const AnnotationPrimaryFullS + const AnnotationRelation + const AnnotationRelationCascade + const AnnotationRelationFull + const AnnotationRelationNoAction + const AnnotationRelationNoSync + const AnnotationRelationRestrict + const AnnotationRelationSeperator + const AnnotationRelationSetNull + const AnnotationRelationSync + const AnnotationSeperator + const AnnotationTagEqual + const AnnotationTagSeperator + const HeaderAcceptLanguage + const HeaderContentLanguage + const IsPointerTime + const Iso8601TimeFormat + const KeyFirstPage + const KeyLastPage + const KeyNextPage + const KeyPreviousPage + const KeyTotalPages + const MediaType + const QueryParamFields + const QueryParamFilter + const QueryParamInclude + const QueryParamLanguage + const QueryParamLinks + const QueryParamPage + const QueryParamPageCursor + const QueryParamPageLimit + const QueryParamPageNumber + const QueryParamPageOffset + const QueryParamPageSize + const QueryParamPageTotal + const QueryParamPreset + const QueryParamSort + var ControllerCtxFlags = []uint + var ControllerCtxKey = ControllerKeyCtx + var ErrBadJSONAPIID = errors.New("id should be either string, int(8,16,32,64) or uint(8,16,32,64)") + var ErrClientIDDisallowed = errors.New("Client id is disallowed for this model.") + var ErrExpectedSlice = errors.New("models should be a slice of struct pointers") + var ErrFieldAlreadySelected = errors.New("Field already selected.") + var ErrFieldNotFound = errors.New("Field not found") + var ErrInvalidISO8601 = errors.New("Only strings can be parsed as dates, ISO8601 timestamps") + var ErrInvalidTime = errors.New("Only numbers can be parsed as dates, unix timestamps") + var ErrInvalidType = errors.New("Invalid type provided") + var ErrModelNotMapped = errors.New("Unmapped model provided.") + var ErrNilValue = errors.New("Nil value provided.") + var ErrUnexpectedType = errors.New("models should be a struct pointer or slice of struct pointers") + var ErrUnknownFieldNumberType = errors.New("The struct field was not of a known number type") + var ErrUnsupportedPtrType = errors.New("Pointer type in struct is not supported") + var ErrValueNotAddresable = errors.New("Provided value is not addressable") + var ModelCtxFlags = []uint + var Processes = map[string]struct{} + var ScopeCtxFlags = []uint + var ScopeIDCtxKey = ScopeIDCtx + var TxStateCtxKey = TransactionStateCtx + var Verbose = flag.Bool("verbose-api", false, "Used to get verbose data") + func ConvertToSliceInterface(i *interface{}) ([]interface{}, error) + func SplitBracketParameter(bracketed string) (values []string, err error) + type BadModel struct + ID int + type Blog struct + CreatedAt time.Time + CurrentPost *Post + CurrentPostID uint64 + ID int + Posts []*Post + Title string + ViewCount int + type Comment struct + Body string + ID int + PostID uint64 + type ControllerKeyCtx struct + type ModelNonTagged struct + ID int + type Pet struct + ID int + Name string + Owners []*User + type Post struct + BlogID int + Body string + Comments []*Comment + ID uint64 + LatestComment *Comment + Title string + type ScopeIDCtx struct + type TransactionStateCtx struct + type User struct + ID int + Lang string + Name string + Pets []*Pet