Documentation
¶
Index ¶
Constants ¶
View Source
const ( REF_KEY = "ref" REL_KEY = "rel" VERB_KEY = "verb" COLLECTION_KEY = "Collection" )
Variables ¶
View Source
var Cache *lru.Cache = lru.New(250)
View Source
var CacheMutex = sync.Mutex{}
Functions ¶
func ExpandArray ¶
func ExpandArray(data interface{}, expansion, fields string) []interface{}
Types ¶
type CacheEntry ¶
type Configuration ¶
type Configuration struct { UsingCache bool UsingMongo bool IdURIs map[string]string CacheExpInSeconds int64 ConnectionTimeoutInS int }
var ExpanderConfig Configuration = Configuration{ UsingMongo: false, UsingCache: false, CacheExpInSeconds: 86400, ConnectionTimeoutInS: 2, }
Click to show internal directories.
Click to hide internal directories.