Documentation
¶
Overview ¶
Package searchkit provides a fluent Go API over the macOS SearchKit framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Index ¶
- Constants
- func KSKEndTermChars() obj.Object
- func KSKLanguageTypes() obj.Object
- func KSKMaximumTerms() obj.Object
- func KSKMinTermLength() obj.Object
- func KSKProximityIndexing() obj.Object
- func KSKStartTermChars() obj.Object
- func KSKStopWords() obj.Object
- func KSKSubstitutions() obj.Object
- func KSKTermChars() obj.Object
- func SKDocumentCopyURL(inDocument unsafe.Pointer) corefoundation.CFURLRef
- func SKDocumentCreate(inScheme corefoundation.CFStringRef, inParent unsafe.Pointer, ...) unsafe.Pointer
- func SKDocumentCreateWithURL(inURL corefoundation.CFURLRef) unsafe.Pointer
- func SKDocumentGetName(inDocument unsafe.Pointer) corefoundation.CFStringRef
- func SKDocumentGetParent(inDocument unsafe.Pointer) unsafe.Pointer
- func SKDocumentGetSchemeName(inDocument unsafe.Pointer) corefoundation.CFStringRef
- func SKDocumentGetTypeID() int
- func SKIndexAddDocument(inIndex SKIndexRef, inDocument unsafe.Pointer, ...) uint8
- func SKIndexAddDocumentWithText(inIndex SKIndexRef, inDocument unsafe.Pointer, ...) uint8
- func SKIndexClose(inIndex SKIndexRef)
- func SKIndexCompact(inIndex SKIndexRef) uint8
- func SKIndexCopyDocumentForDocumentID(inIndex SKIndexRef, inDocumentID int) unsafe.Pointer
- func SKIndexCopyDocumentIDArrayForTermID(inIndex SKIndexRef, inTermID int) corefoundation.CFArrayRef
- func SKIndexCopyDocumentProperties(inIndex SKIndexRef, inDocument unsafe.Pointer) corefoundation.CFDictionaryRef
- func SKIndexCopyDocumentRefsForDocumentIDs(inIndex SKIndexRef, inCount int, outDocumentRefsArray unsafe.Pointer) (inDocumentIDsArray int)
- func SKIndexCopyDocumentURLsForDocumentIDs(inIndex SKIndexRef, inCount int, outDocumentURLsArray unsafe.Pointer) (inDocumentIDsArray int)
- func SKIndexCopyInfoForDocumentIDs(inIndex SKIndexRef, inCount int, outNamesArray unsafe.Pointer) (inDocumentIDsArray int, outParentIDsArray int)
- func SKIndexCopyTermIDArrayForDocumentID(inIndex SKIndexRef, inDocumentID int) corefoundation.CFArrayRef
- func SKIndexCopyTermStringForTermID(inIndex SKIndexRef, inTermID int) corefoundation.CFStringRef
- func SKIndexDocumentIteratorCopyNext(inIterator SKIndexDocumentIteratorRef) unsafe.Pointer
- func SKIndexDocumentIteratorGetTypeID() int
- func SKIndexFlush(inIndex SKIndexRef) uint8
- func SKIndexGetAnalysisProperties(inIndex SKIndexRef) corefoundation.CFDictionaryRef
- func SKIndexGetDocumentCount(inIndex SKIndexRef) int
- func SKIndexGetDocumentID(inIndex SKIndexRef, inDocument unsafe.Pointer) int
- func SKIndexGetDocumentTermCount(inIndex SKIndexRef, inDocumentID int) int
- func SKIndexGetDocumentTermFrequency(inIndex SKIndexRef, inDocumentID int, inTermID int) int
- func SKIndexGetMaximumBytesBeforeFlush(inIndex SKIndexRef) int
- func SKIndexGetMaximumDocumentID(inIndex SKIndexRef) int
- func SKIndexGetMaximumTermID(inIndex SKIndexRef) int
- func SKIndexGetTermDocumentCount(inIndex SKIndexRef, inTermID int) int
- func SKIndexGetTermIDForTermString(inIndex SKIndexRef, inTermString corefoundation.CFStringRef) int
- func SKIndexGetTypeID() int
- func SKIndexMoveDocument(inIndex SKIndexRef, inDocument unsafe.Pointer, inNewParent unsafe.Pointer) uint8
- func SKIndexRemoveDocument(inIndex SKIndexRef, inDocument unsafe.Pointer) uint8
- func SKIndexRenameDocument(inIndex SKIndexRef, inDocument unsafe.Pointer, ...) uint8
- func SKIndexSetDocumentProperties(inIndex SKIndexRef, inDocument unsafe.Pointer, ...)
- func SKIndexSetMaximumBytesBeforeFlush(inIndex SKIndexRef, inBytesForUpdate int)
- func SKLoadDefaultExtractorPlugIns()
- func SKSearchCancel(inSearch SKSearchRef)
- func SKSearchFindMatches(inSearch SKSearchRef, inMaximumCount int, maximumTime float64) (result uint8, outDocumentIDsArray int, outScoresArray float32, ...)
- func SKSearchGetTypeID() int
- func SKSearchGroupCopyIndexes(inSearchGroup SKSearchGroupRef) corefoundation.CFArrayRef
- func SKSearchGroupGetTypeID() int
- func SKSearchResultsCopyMatchingTerms(inSearchResults SKSearchResultsRef, inItem int) corefoundation.CFArrayRef
- func SKSearchResultsGetCount(inSearchResults SKSearchResultsRef) int
- func SKSearchResultsGetInfoInRange(inSearchResults SKSearchResultsRef, inRange corefoundation.CFRange, ...) (result int, outScoresArray float32)
- func SKSearchResultsGetTypeID() int
- func SKSummaryCopyParagraphAtIndex(summary SKSummaryRef, i int) corefoundation.CFStringRef
- func SKSummaryCopyParagraphSummaryString(summary SKSummaryRef, numParagraphs int) corefoundation.CFStringRef
- func SKSummaryCopySentenceAtIndex(summary SKSummaryRef, i int) corefoundation.CFStringRef
- func SKSummaryCopySentenceSummaryString(summary SKSummaryRef, numSentences int) corefoundation.CFStringRef
- func SKSummaryGetParagraphCount(summary SKSummaryRef) int
- func SKSummaryGetParagraphSummaryInfo(summary SKSummaryRef, numParagraphsInSummary int) (result int, outRankOrderOfParagraphs int, outParagraphIndexOfParagraphs int)
- func SKSummaryGetSentenceCount(summary SKSummaryRef) int
- func SKSummaryGetSentenceSummaryInfo(summary SKSummaryRef, numSentencesInSummary int) (result int, outRankOrderOfSentences int, outSentenceIndexOfSentences int, ...)
- func SKSummaryGetTypeID() int
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type FilesecProperty
- type Flag
- type Idtype
- type MpoFlags
- type OSClockid
- type Perm
- type PtrauthKey
- type QosClass
- type SKDocumentIndexState
- type SKIndex
- type SKIndexDocumentIterator
- type SKIndexDocumentIteratorRef
- type SKIndexRef
- func SKIndexCreateWithMutableData(inData corefoundation.CFMutableDataRef, inIndexName corefoundation.CFStringRef, ...) SKIndexRef
- func SKIndexCreateWithURL(inURL corefoundation.CFURLRef, inIndexName corefoundation.CFStringRef, ...) SKIndexRef
- func SKIndexOpenWithData(inData corefoundation.CFDataRef, inIndexName corefoundation.CFStringRef) SKIndexRef
- func SKIndexOpenWithMutableData(inData corefoundation.CFMutableDataRef, inIndexName corefoundation.CFStringRef) SKIndexRef
- func SKIndexOpenWithURL(inURL corefoundation.CFURLRef, inIndexName corefoundation.CFStringRef, ...) SKIndexRef
- type SKIndexType
- type SKSearch
- type SKSearchGroup
- type SKSearchGroupRef
- type SKSearchRef
- type SKSearchResults
- type SKSearchResultsRef
- type SKSearchType
- type SKSummary
- type SKSummaryRef
- type Tag
- type Type
Constants ¶
const ( KSKSearchOptionDefault = 0 KSKSearchOptionFindSimilar = 4 KSKSearchOptionNoRelevanceScores = 1 KSKSearchOptionSpaceMeansOR = 2 )
Variables ¶
This section is empty.
Functions ¶
func KSKEndTermChars ¶
KSKEndTermChars returns the value of the constant kSKEndTermChars.
func KSKLanguageTypes ¶
KSKLanguageTypes returns the value of the constant kSKLanguageTypes.
func KSKMaximumTerms ¶
KSKMaximumTerms returns the value of the constant kSKMaximumTerms.
func KSKMinTermLength ¶
KSKMinTermLength returns the value of the constant kSKMinTermLength.
func KSKProximityIndexing ¶
KSKProximityIndexing returns the value of the constant kSKProximityIndexing.
func KSKStartTermChars ¶
KSKStartTermChars returns the value of the constant kSKStartTermChars.
func KSKStopWords ¶
KSKStopWords returns the value of the constant kSKStopWords.
func KSKSubstitutions ¶
KSKSubstitutions returns the value of the constant kSKSubstitutions.
func KSKTermChars ¶
KSKTermChars returns the value of the constant kSKTermChars.
func SKDocumentCopyURL ¶
func SKDocumentCopyURL(inDocument unsafe.Pointer) corefoundation.CFURLRef
SKDocumentCopyURL calls the SearchKit framework function SKDocumentCopyURL.
func SKDocumentCreate ¶
func SKDocumentCreate(inScheme corefoundation.CFStringRef, inParent unsafe.Pointer, inName corefoundation.CFStringRef) unsafe.Pointer
SKDocumentCreate calls the SearchKit framework function SKDocumentCreate.
func SKDocumentCreateWithURL ¶
func SKDocumentCreateWithURL(inURL corefoundation.CFURLRef) unsafe.Pointer
SKDocumentCreateWithURL calls the SearchKit framework function SKDocumentCreateWithURL.
func SKDocumentGetName ¶
func SKDocumentGetName(inDocument unsafe.Pointer) corefoundation.CFStringRef
SKDocumentGetName calls the SearchKit framework function SKDocumentGetName.
func SKDocumentGetParent ¶
SKDocumentGetParent calls the SearchKit framework function SKDocumentGetParent.
func SKDocumentGetSchemeName ¶
func SKDocumentGetSchemeName(inDocument unsafe.Pointer) corefoundation.CFStringRef
SKDocumentGetSchemeName calls the SearchKit framework function SKDocumentGetSchemeName.
func SKDocumentGetTypeID ¶
func SKDocumentGetTypeID() int
SKDocumentGetTypeID calls the SearchKit framework function SKDocumentGetTypeID.
func SKIndexAddDocument ¶
func SKIndexAddDocument(inIndex SKIndexRef, inDocument unsafe.Pointer, inMIMETypeHint corefoundation.CFStringRef, inCanReplace uint8) uint8
SKIndexAddDocument calls the SearchKit framework function SKIndexAddDocument.
func SKIndexAddDocumentWithText ¶
func SKIndexAddDocumentWithText(inIndex SKIndexRef, inDocument unsafe.Pointer, inDocumentText corefoundation.CFStringRef, inCanReplace uint8) uint8
SKIndexAddDocumentWithText calls the SearchKit framework function SKIndexAddDocumentWithText.
func SKIndexClose ¶
func SKIndexClose(inIndex SKIndexRef)
SKIndexClose calls the SearchKit framework function SKIndexClose.
func SKIndexCompact ¶
func SKIndexCompact(inIndex SKIndexRef) uint8
SKIndexCompact calls the SearchKit framework function SKIndexCompact.
func SKIndexCopyDocumentForDocumentID ¶
func SKIndexCopyDocumentForDocumentID(inIndex SKIndexRef, inDocumentID int) unsafe.Pointer
SKIndexCopyDocumentForDocumentID calls the SearchKit framework function SKIndexCopyDocumentForDocumentID.
func SKIndexCopyDocumentIDArrayForTermID ¶
func SKIndexCopyDocumentIDArrayForTermID(inIndex SKIndexRef, inTermID int) corefoundation.CFArrayRef
SKIndexCopyDocumentIDArrayForTermID calls the SearchKit framework function SKIndexCopyDocumentIDArrayForTermID.
func SKIndexCopyDocumentProperties ¶
func SKIndexCopyDocumentProperties(inIndex SKIndexRef, inDocument unsafe.Pointer) corefoundation.CFDictionaryRef
SKIndexCopyDocumentProperties calls the SearchKit framework function SKIndexCopyDocumentProperties.
func SKIndexCopyDocumentRefsForDocumentIDs ¶
func SKIndexCopyDocumentRefsForDocumentIDs(inIndex SKIndexRef, inCount int, outDocumentRefsArray unsafe.Pointer) (inDocumentIDsArray int)
SKIndexCopyDocumentRefsForDocumentIDs calls the SearchKit framework function SKIndexCopyDocumentRefsForDocumentIDs.
func SKIndexCopyDocumentURLsForDocumentIDs ¶
func SKIndexCopyDocumentURLsForDocumentIDs(inIndex SKIndexRef, inCount int, outDocumentURLsArray unsafe.Pointer) (inDocumentIDsArray int)
SKIndexCopyDocumentURLsForDocumentIDs calls the SearchKit framework function SKIndexCopyDocumentURLsForDocumentIDs.
func SKIndexCopyInfoForDocumentIDs ¶
func SKIndexCopyInfoForDocumentIDs(inIndex SKIndexRef, inCount int, outNamesArray unsafe.Pointer) (inDocumentIDsArray int, outParentIDsArray int)
SKIndexCopyInfoForDocumentIDs calls the SearchKit framework function SKIndexCopyInfoForDocumentIDs.
func SKIndexCopyTermIDArrayForDocumentID ¶
func SKIndexCopyTermIDArrayForDocumentID(inIndex SKIndexRef, inDocumentID int) corefoundation.CFArrayRef
SKIndexCopyTermIDArrayForDocumentID calls the SearchKit framework function SKIndexCopyTermIDArrayForDocumentID.
func SKIndexCopyTermStringForTermID ¶
func SKIndexCopyTermStringForTermID(inIndex SKIndexRef, inTermID int) corefoundation.CFStringRef
SKIndexCopyTermStringForTermID calls the SearchKit framework function SKIndexCopyTermStringForTermID.
func SKIndexDocumentIteratorCopyNext ¶
func SKIndexDocumentIteratorCopyNext(inIterator SKIndexDocumentIteratorRef) unsafe.Pointer
SKIndexDocumentIteratorCopyNext calls the SearchKit framework function SKIndexDocumentIteratorCopyNext.
func SKIndexDocumentIteratorGetTypeID ¶
func SKIndexDocumentIteratorGetTypeID() int
SKIndexDocumentIteratorGetTypeID calls the SearchKit framework function SKIndexDocumentIteratorGetTypeID.
func SKIndexFlush ¶
func SKIndexFlush(inIndex SKIndexRef) uint8
SKIndexFlush calls the SearchKit framework function SKIndexFlush.
func SKIndexGetAnalysisProperties ¶
func SKIndexGetAnalysisProperties(inIndex SKIndexRef) corefoundation.CFDictionaryRef
SKIndexGetAnalysisProperties calls the SearchKit framework function SKIndexGetAnalysisProperties.
func SKIndexGetDocumentCount ¶
func SKIndexGetDocumentCount(inIndex SKIndexRef) int
SKIndexGetDocumentCount calls the SearchKit framework function SKIndexGetDocumentCount.
func SKIndexGetDocumentID ¶
func SKIndexGetDocumentID(inIndex SKIndexRef, inDocument unsafe.Pointer) int
SKIndexGetDocumentID calls the SearchKit framework function SKIndexGetDocumentID.
func SKIndexGetDocumentTermCount ¶
func SKIndexGetDocumentTermCount(inIndex SKIndexRef, inDocumentID int) int
SKIndexGetDocumentTermCount calls the SearchKit framework function SKIndexGetDocumentTermCount.
func SKIndexGetDocumentTermFrequency ¶
func SKIndexGetDocumentTermFrequency(inIndex SKIndexRef, inDocumentID int, inTermID int) int
SKIndexGetDocumentTermFrequency calls the SearchKit framework function SKIndexGetDocumentTermFrequency.
func SKIndexGetMaximumBytesBeforeFlush ¶
func SKIndexGetMaximumBytesBeforeFlush(inIndex SKIndexRef) int
SKIndexGetMaximumBytesBeforeFlush calls the SearchKit framework function SKIndexGetMaximumBytesBeforeFlush.
func SKIndexGetMaximumDocumentID ¶
func SKIndexGetMaximumDocumentID(inIndex SKIndexRef) int
SKIndexGetMaximumDocumentID calls the SearchKit framework function SKIndexGetMaximumDocumentID.
func SKIndexGetMaximumTermID ¶
func SKIndexGetMaximumTermID(inIndex SKIndexRef) int
SKIndexGetMaximumTermID calls the SearchKit framework function SKIndexGetMaximumTermID.
func SKIndexGetTermDocumentCount ¶
func SKIndexGetTermDocumentCount(inIndex SKIndexRef, inTermID int) int
SKIndexGetTermDocumentCount calls the SearchKit framework function SKIndexGetTermDocumentCount.
func SKIndexGetTermIDForTermString ¶
func SKIndexGetTermIDForTermString(inIndex SKIndexRef, inTermString corefoundation.CFStringRef) int
SKIndexGetTermIDForTermString calls the SearchKit framework function SKIndexGetTermIDForTermString.
func SKIndexGetTypeID ¶
func SKIndexGetTypeID() int
SKIndexGetTypeID calls the SearchKit framework function SKIndexGetTypeID.
func SKIndexMoveDocument ¶
func SKIndexMoveDocument(inIndex SKIndexRef, inDocument unsafe.Pointer, inNewParent unsafe.Pointer) uint8
SKIndexMoveDocument calls the SearchKit framework function SKIndexMoveDocument.
func SKIndexRemoveDocument ¶
func SKIndexRemoveDocument(inIndex SKIndexRef, inDocument unsafe.Pointer) uint8
SKIndexRemoveDocument calls the SearchKit framework function SKIndexRemoveDocument.
func SKIndexRenameDocument ¶
func SKIndexRenameDocument(inIndex SKIndexRef, inDocument unsafe.Pointer, inNewName corefoundation.CFStringRef) uint8
SKIndexRenameDocument calls the SearchKit framework function SKIndexRenameDocument.
func SKIndexSetDocumentProperties ¶
func SKIndexSetDocumentProperties(inIndex SKIndexRef, inDocument unsafe.Pointer, inProperties corefoundation.CFDictionaryRef)
SKIndexSetDocumentProperties calls the SearchKit framework function SKIndexSetDocumentProperties.
func SKIndexSetMaximumBytesBeforeFlush ¶
func SKIndexSetMaximumBytesBeforeFlush(inIndex SKIndexRef, inBytesForUpdate int)
SKIndexSetMaximumBytesBeforeFlush calls the SearchKit framework function SKIndexSetMaximumBytesBeforeFlush.
func SKLoadDefaultExtractorPlugIns ¶
func SKLoadDefaultExtractorPlugIns()
SKLoadDefaultExtractorPlugIns calls the SearchKit framework function SKLoadDefaultExtractorPlugIns.
func SKSearchCancel ¶
func SKSearchCancel(inSearch SKSearchRef)
SKSearchCancel calls the SearchKit framework function SKSearchCancel.
func SKSearchFindMatches ¶
func SKSearchFindMatches(inSearch SKSearchRef, inMaximumCount int, maximumTime float64) (result uint8, outDocumentIDsArray int, outScoresArray float32, outFoundCount int)
SKSearchFindMatches calls the SearchKit framework function SKSearchFindMatches.
func SKSearchGetTypeID ¶
func SKSearchGetTypeID() int
SKSearchGetTypeID calls the SearchKit framework function SKSearchGetTypeID.
func SKSearchGroupCopyIndexes ¶
func SKSearchGroupCopyIndexes(inSearchGroup SKSearchGroupRef) corefoundation.CFArrayRef
SKSearchGroupCopyIndexes calls the SearchKit framework function SKSearchGroupCopyIndexes.
func SKSearchGroupGetTypeID ¶
func SKSearchGroupGetTypeID() int
SKSearchGroupGetTypeID calls the SearchKit framework function SKSearchGroupGetTypeID.
func SKSearchResultsCopyMatchingTerms ¶
func SKSearchResultsCopyMatchingTerms(inSearchResults SKSearchResultsRef, inItem int) corefoundation.CFArrayRef
SKSearchResultsCopyMatchingTerms calls the SearchKit framework function SKSearchResultsCopyMatchingTerms.
func SKSearchResultsGetCount ¶
func SKSearchResultsGetCount(inSearchResults SKSearchResultsRef) int
SKSearchResultsGetCount calls the SearchKit framework function SKSearchResultsGetCount.
func SKSearchResultsGetInfoInRange ¶
func SKSearchResultsGetInfoInRange(inSearchResults SKSearchResultsRef, inRange corefoundation.CFRange, outDocumentsArray unsafe.Pointer, outIndexesArray unsafe.Pointer) (result int, outScoresArray float32)
SKSearchResultsGetInfoInRange calls the SearchKit framework function SKSearchResultsGetInfoInRange.
func SKSearchResultsGetTypeID ¶
func SKSearchResultsGetTypeID() int
SKSearchResultsGetTypeID calls the SearchKit framework function SKSearchResultsGetTypeID.
func SKSummaryCopyParagraphAtIndex ¶
func SKSummaryCopyParagraphAtIndex(summary SKSummaryRef, i int) corefoundation.CFStringRef
SKSummaryCopyParagraphAtIndex calls the SearchKit framework function SKSummaryCopyParagraphAtIndex.
func SKSummaryCopyParagraphSummaryString ¶
func SKSummaryCopyParagraphSummaryString(summary SKSummaryRef, numParagraphs int) corefoundation.CFStringRef
SKSummaryCopyParagraphSummaryString calls the SearchKit framework function SKSummaryCopyParagraphSummaryString.
func SKSummaryCopySentenceAtIndex ¶
func SKSummaryCopySentenceAtIndex(summary SKSummaryRef, i int) corefoundation.CFStringRef
SKSummaryCopySentenceAtIndex calls the SearchKit framework function SKSummaryCopySentenceAtIndex.
func SKSummaryCopySentenceSummaryString ¶
func SKSummaryCopySentenceSummaryString(summary SKSummaryRef, numSentences int) corefoundation.CFStringRef
SKSummaryCopySentenceSummaryString calls the SearchKit framework function SKSummaryCopySentenceSummaryString.
func SKSummaryGetParagraphCount ¶
func SKSummaryGetParagraphCount(summary SKSummaryRef) int
SKSummaryGetParagraphCount calls the SearchKit framework function SKSummaryGetParagraphCount.
func SKSummaryGetParagraphSummaryInfo ¶
func SKSummaryGetParagraphSummaryInfo(summary SKSummaryRef, numParagraphsInSummary int) (result int, outRankOrderOfParagraphs int, outParagraphIndexOfParagraphs int)
SKSummaryGetParagraphSummaryInfo calls the SearchKit framework function SKSummaryGetParagraphSummaryInfo.
func SKSummaryGetSentenceCount ¶
func SKSummaryGetSentenceCount(summary SKSummaryRef) int
SKSummaryGetSentenceCount calls the SearchKit framework function SKSummaryGetSentenceCount.
func SKSummaryGetSentenceSummaryInfo ¶
func SKSummaryGetSentenceSummaryInfo(summary SKSummaryRef, numSentencesInSummary int) (result int, outRankOrderOfSentences int, outSentenceIndexOfSentences int, outParagraphIndexOfSentences int)
SKSummaryGetSentenceSummaryInfo calls the SearchKit framework function SKSummaryGetSentenceSummaryInfo.
func SKSummaryGetTypeID ¶
func SKSummaryGetTypeID() int
SKSummaryGetTypeID calls the SearchKit framework function SKSummaryGetTypeID.
Types ¶
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type SKDocumentIndexState ¶
type SKDocumentIndexState int32
const ( KSKDocumentStateNotIndexed SKDocumentIndexState = 0 KSKDocumentStateIndexed SKDocumentIndexState = 1 KSKDocumentStateAddPending SKDocumentIndexState = 2 KSKDocumentStateDeletePending SKDocumentIndexState = 3 )
func SKIndexGetDocumentState ¶
func SKIndexGetDocumentState(inIndex SKIndexRef, inDocument unsafe.Pointer) SKDocumentIndexState
SKIndexGetDocumentState calls the SearchKit framework function SKIndexGetDocumentState.
func (SKDocumentIndexState) String ¶
func (e SKDocumentIndexState) String() string
String returns the SKDocumentIndexState constant's name, or its numeric form when the value is not a known constant.
type SKIndexDocumentIterator ¶
type SKIndexDocumentIterator struct{}
type SKIndexDocumentIteratorRef ¶ added in v0.18.0
SKIndexDocumentIteratorRef is a handle for the opaque SKIndexDocumentIteratorRef type.
func SKIndexDocumentIteratorCreate ¶
func SKIndexDocumentIteratorCreate(inIndex SKIndexRef, inParentDocument unsafe.Pointer) SKIndexDocumentIteratorRef
SKIndexDocumentIteratorCreate calls the SearchKit framework function SKIndexDocumentIteratorCreate.
func (SKIndexDocumentIteratorRef) IsNil ¶ added in v0.18.0
func (h SKIndexDocumentIteratorRef) IsNil() bool
IsNil reports whether SKIndexDocumentIteratorRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type SKIndexRef ¶ added in v0.18.0
SKIndexRef is a handle for the opaque SKIndexRef type.
func SKIndexCreateWithMutableData ¶
func SKIndexCreateWithMutableData(inData corefoundation.CFMutableDataRef, inIndexName corefoundation.CFStringRef, inIndexType SKIndexType, inAnalysisProperties corefoundation.CFDictionaryRef) SKIndexRef
SKIndexCreateWithMutableData calls the SearchKit framework function SKIndexCreateWithMutableData.
func SKIndexCreateWithURL ¶
func SKIndexCreateWithURL(inURL corefoundation.CFURLRef, inIndexName corefoundation.CFStringRef, inIndexType SKIndexType, inAnalysisProperties corefoundation.CFDictionaryRef) SKIndexRef
SKIndexCreateWithURL calls the SearchKit framework function SKIndexCreateWithURL.
func SKIndexOpenWithData ¶
func SKIndexOpenWithData(inData corefoundation.CFDataRef, inIndexName corefoundation.CFStringRef) SKIndexRef
SKIndexOpenWithData calls the SearchKit framework function SKIndexOpenWithData.
func SKIndexOpenWithMutableData ¶
func SKIndexOpenWithMutableData(inData corefoundation.CFMutableDataRef, inIndexName corefoundation.CFStringRef) SKIndexRef
SKIndexOpenWithMutableData calls the SearchKit framework function SKIndexOpenWithMutableData.
func SKIndexOpenWithURL ¶
func SKIndexOpenWithURL(inURL corefoundation.CFURLRef, inIndexName corefoundation.CFStringRef, inWriteAccess uint8) SKIndexRef
SKIndexOpenWithURL calls the SearchKit framework function SKIndexOpenWithURL.
func (SKIndexRef) IsNil ¶ added in v0.18.0
func (h SKIndexRef) IsNil() bool
IsNil reports whether SKIndexRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type SKIndexType ¶
type SKIndexType int32
const ( KSKIndexUnknown SKIndexType = 0 KSKIndexInverted SKIndexType = 1 KSKIndexVector SKIndexType = 2 KSKIndexInvertedVector SKIndexType = 3 )
func SKIndexGetIndexType ¶
func SKIndexGetIndexType(inIndex SKIndexRef) SKIndexType
SKIndexGetIndexType calls the SearchKit framework function SKIndexGetIndexType.
func (SKIndexType) String ¶
func (e SKIndexType) String() string
String returns the SKIndexType constant's name, or its numeric form when the value is not a known constant.
type SKSearchGroup ¶
type SKSearchGroup struct{}
type SKSearchGroupRef ¶ added in v0.18.0
SKSearchGroupRef is a handle for the opaque SKSearchGroupRef type.
func SKSearchGroupCreate ¶
func SKSearchGroupCreate(inArrayOfInIndexes corefoundation.CFArrayRef) SKSearchGroupRef
SKSearchGroupCreate calls the SearchKit framework function SKSearchGroupCreate.
func (SKSearchGroupRef) IsNil ¶ added in v0.18.0
func (h SKSearchGroupRef) IsNil() bool
IsNil reports whether SKSearchGroupRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type SKSearchRef ¶ added in v0.18.0
SKSearchRef is a handle for the opaque SKSearchRef type.
func SKSearchCreate ¶
func SKSearchCreate(inIndex SKIndexRef, inQuery corefoundation.CFStringRef, inSearchOptions int) SKSearchRef
SKSearchCreate calls the SearchKit framework function SKSearchCreate.
func (SKSearchRef) IsNil ¶ added in v0.18.0
func (h SKSearchRef) IsNil() bool
IsNil reports whether SKSearchRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type SKSearchResults ¶
type SKSearchResults struct{}
type SKSearchResultsRef ¶ added in v0.18.0
SKSearchResultsRef is a handle for the opaque SKSearchResultsRef type.
func SKSearchResultsCreateWithDocuments ¶
func SKSearchResultsCreateWithDocuments(inSearchGroup SKSearchGroupRef, inExampleDocuments corefoundation.CFArrayRef, inMaxFoundDocuments int, inContext unsafe.Pointer, inFilterCallBack unsafe.Pointer) SKSearchResultsRef
SKSearchResultsCreateWithDocuments calls the SearchKit framework function SKSearchResultsCreateWithDocuments.
func SKSearchResultsCreateWithQuery ¶
func SKSearchResultsCreateWithQuery(inSearchGroup SKSearchGroupRef, inQuery corefoundation.CFStringRef, inSearchType SKSearchType, inMaxFoundDocuments int, inContext unsafe.Pointer, inFilterCallBack unsafe.Pointer) SKSearchResultsRef
SKSearchResultsCreateWithQuery calls the SearchKit framework function SKSearchResultsCreateWithQuery.
func (SKSearchResultsRef) IsNil ¶ added in v0.18.0
func (h SKSearchResultsRef) IsNil() bool
IsNil reports whether SKSearchResultsRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type SKSearchType ¶
type SKSearchType int32
const ( KSKSearchRanked SKSearchType = 0 KSKSearchBooleanRanked SKSearchType = 1 KSKSearchRequiredRanked SKSearchType = 2 KSKSearchPrefixRanked SKSearchType = 3 )
func (SKSearchType) String ¶
func (e SKSearchType) String() string
String returns the SKSearchType constant's name, or its numeric form when the value is not a known constant.
type SKSummaryRef ¶ added in v0.18.0
SKSummaryRef is a handle for the opaque SKSummaryRef type.
func SKSummaryCreateWithString ¶
func SKSummaryCreateWithString(inString corefoundation.CFStringRef) SKSummaryRef
SKSummaryCreateWithString calls the SearchKit framework function SKSummaryCreateWithString.
func (SKSummaryRef) IsNil ¶ added in v0.18.0
func (h SKSummaryRef) IsNil() bool
IsNil reports whether SKSummaryRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.