setNonCollectionAware adds a single collection matching _default._default collection, to be referred to if no Collection property is set on a blip message.
(collectionCtx *blipSyncCollectionContext)
| 86 | |
| 87 | // setNonCollectionAware adds a single collection matching _default._default collection, to be referred to if no Collection property is set on a blip message. |
| 88 | func (b *blipCollections) setNonCollectionAware(collectionCtx *blipSyncCollectionContext) { |
| 89 | b.Lock() |
| 90 | defer b.Unlock() |
| 91 | if b.nonCollectionAwareContext == nil { |
| 92 | b.nonCollectionAwareContext = collectionCtx |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | // set adds a set of collections to this contexts struct. |
| 97 | func (b *blipCollections) set(collectionCtxs []*blipSyncCollectionContext) { |