Documentation
¶
Rendered for darwin/amd64
Overview ¶
Package searchkit provides purego-based Go bindings for the macOS SearchKit framework.
Apple documentation: https://developer.apple.com/documentation/searchkit
Index ¶
- Constants
- func KSKEndTermChars() uintptr
- func KSKLanguageTypes() uintptrdeprecated
- func KSKMaximumTerms() uintptr
- func KSKMinTermLength() uintptr
- func KSKProximityIndexing() uintptr
- func KSKStartTermChars() uintptr
- func KSKStopWords() uintptr
- func KSKSubstitutions() uintptr
- func KSKTermChars() uintptr
- func SKDocumentCopyURL(inDocument unsafe.Pointer) unsafe.Pointer
- func SKDocumentCreate(inScheme unsafe.Pointer, inParent unsafe.Pointer, inName unsafe.Pointer) unsafe.Pointer
- func SKDocumentCreateWithURL(inURL unsafe.Pointer) unsafe.Pointer
- func SKDocumentGetName(inDocument unsafe.Pointer) unsafe.Pointer
- func SKDocumentGetParent(inDocument unsafe.Pointer) unsafe.Pointer
- func SKDocumentGetSchemeName(inDocument unsafe.Pointer) unsafe.Pointer
- func SKDocumentGetTypeID() uint
- func SKIndexAddDocument(inIndex unsafe.Pointer, inDocument unsafe.Pointer, ...) uint8
- func SKIndexAddDocumentWithText(inIndex unsafe.Pointer, inDocument unsafe.Pointer, ...) uint8
- func SKIndexClose(inIndex unsafe.Pointer)
- func SKIndexCompact(inIndex unsafe.Pointer) uint8
- func SKIndexCopyDocumentForDocumentID(inIndex unsafe.Pointer, inDocumentID int) unsafe.Pointer
- func SKIndexCopyDocumentIDArrayForTermID(inIndex unsafe.Pointer, inTermID int) unsafe.Pointer
- func SKIndexCopyDocumentProperties(inIndex unsafe.Pointer, inDocument unsafe.Pointer) unsafe.Pointer
- func SKIndexCopyDocumentRefsForDocumentIDs(inIndex unsafe.Pointer, inCount int, inDocumentIDsArray *int, ...)
- func SKIndexCopyDocumentURLsForDocumentIDs(inIndex unsafe.Pointer, inCount int, inDocumentIDsArray *int, ...)
- func SKIndexCopyInfoForDocumentIDs(inIndex unsafe.Pointer, inCount int, inDocumentIDsArray *int, ...)
- func SKIndexCopyTermIDArrayForDocumentID(inIndex unsafe.Pointer, inDocumentID int) unsafe.Pointer
- func SKIndexCopyTermStringForTermID(inIndex unsafe.Pointer, inTermID int) unsafe.Pointer
- func SKIndexCreateWithMutableData(inData unsafe.Pointer, inIndexName unsafe.Pointer, inIndexType SKIndexType, ...) unsafe.Pointer
- func SKIndexCreateWithURL(inURL unsafe.Pointer, inIndexName unsafe.Pointer, inIndexType SKIndexType, ...) unsafe.Pointer
- func SKIndexDocumentIteratorCopyNext(inIterator unsafe.Pointer) unsafe.Pointer
- func SKIndexDocumentIteratorCreate(inIndex unsafe.Pointer, inParentDocument unsafe.Pointer) unsafe.Pointer
- func SKIndexDocumentIteratorGetTypeID() uint
- func SKIndexFlush(inIndex unsafe.Pointer) uint8
- func SKIndexGetAnalysisProperties(inIndex unsafe.Pointer) unsafe.Pointer
- func SKIndexGetDocumentCount(inIndex unsafe.Pointer) int
- func SKIndexGetDocumentID(inIndex unsafe.Pointer, inDocument unsafe.Pointer) int
- func SKIndexGetDocumentTermCount(inIndex unsafe.Pointer, inDocumentID int) int
- func SKIndexGetDocumentTermFrequency(inIndex unsafe.Pointer, inDocumentID int, inTermID int) int
- func SKIndexGetMaximumBytesBeforeFlush(inIndex unsafe.Pointer) int
- func SKIndexGetMaximumDocumentID(inIndex unsafe.Pointer) int
- func SKIndexGetMaximumTermID(inIndex unsafe.Pointer) int
- func SKIndexGetTermDocumentCount(inIndex unsafe.Pointer, inTermID int) int
- func SKIndexGetTermIDForTermString(inIndex unsafe.Pointer, inTermString unsafe.Pointer) int
- func SKIndexGetTypeID() uint
- func SKIndexMoveDocument(inIndex unsafe.Pointer, inDocument unsafe.Pointer, inNewParent unsafe.Pointer) uint8
- func SKIndexOpenWithData(inData unsafe.Pointer, inIndexName unsafe.Pointer) unsafe.Pointer
- func SKIndexOpenWithMutableData(inData unsafe.Pointer, inIndexName unsafe.Pointer) unsafe.Pointer
- func SKIndexOpenWithURL(inURL unsafe.Pointer, inIndexName unsafe.Pointer, inWriteAccess uint8) unsafe.Pointer
- func SKIndexRemoveDocument(inIndex unsafe.Pointer, inDocument unsafe.Pointer) uint8
- func SKIndexRenameDocument(inIndex unsafe.Pointer, inDocument unsafe.Pointer, inNewName unsafe.Pointer) uint8
- func SKIndexSetDocumentProperties(inIndex unsafe.Pointer, inDocument unsafe.Pointer, inProperties unsafe.Pointer)
- func SKIndexSetMaximumBytesBeforeFlush(inIndex unsafe.Pointer, inBytesForUpdate int)
- func SKLoadDefaultExtractorPlugIns()
- func SKSearchCancel(inSearch unsafe.Pointer)
- func SKSearchCreate(inIndex unsafe.Pointer, inQuery unsafe.Pointer, inSearchOptions uint) unsafe.Pointer
- func SKSearchFindMatches(inSearch unsafe.Pointer, inMaximumCount int, outDocumentIDsArray *int, ...) uint8
- func SKSearchGetTypeID() uint
- func SKSearchGroupCopyIndexes(inSearchGroup unsafe.Pointer) unsafe.Pointerdeprecated
- func SKSearchGroupCreate(inArrayOfInIndexes unsafe.Pointer) unsafe.Pointerdeprecated
- func SKSearchGroupGetTypeID() uintdeprecated
- func SKSearchResultsCopyMatchingTerms(inSearchResults unsafe.Pointer, inItem int) unsafe.Pointerdeprecated
- func SKSearchResultsCreateWithDocuments(inSearchGroup unsafe.Pointer, inExampleDocuments unsafe.Pointer, ...) unsafe.Pointerdeprecated
- func SKSearchResultsCreateWithQuery(inSearchGroup unsafe.Pointer, inQuery unsafe.Pointer, ...) unsafe.Pointerdeprecated
- func SKSearchResultsGetCount(inSearchResults unsafe.Pointer) intdeprecated
- func SKSearchResultsGetInfoInRange(inSearchResults unsafe.Pointer, inRange corefoundation.CFRange, ...) intdeprecated
- func SKSearchResultsGetTypeID() uintdeprecated
- func SKSummaryCopyParagraphAtIndex(summary unsafe.Pointer, i int) unsafe.Pointer
- func SKSummaryCopyParagraphSummaryString(summary unsafe.Pointer, numParagraphs int) unsafe.Pointer
- func SKSummaryCopySentenceAtIndex(summary unsafe.Pointer, i int) unsafe.Pointer
- func SKSummaryCopySentenceSummaryString(summary unsafe.Pointer, numSentences int) unsafe.Pointer
- func SKSummaryCreateWithString(inString unsafe.Pointer) unsafe.Pointer
- func SKSummaryGetParagraphCount(summary unsafe.Pointer) int
- func SKSummaryGetParagraphSummaryInfo(summary unsafe.Pointer, numParagraphsInSummary int, ...) int
- func SKSummaryGetSentenceCount(summary unsafe.Pointer) int
- func SKSummaryGetSentenceSummaryInfo(summary unsafe.Pointer, numSentencesInSummary int, ...) int
- func SKSummaryGetTypeID() uint
- func SymbolAvailable(symbol string) bool
- type Acl_entry_id_t
- type Acl_flag_t
- type Acl_perm_t
- type Acl_tag_t
- type Acl_type_t
- type Clockid_t
- type Dispatch_autorelease_frequency_t
- type Dispatch_block_flags_t
- type Filesec_property_t
- type Idtype_t
- type Mpo_flags_t
- type Os_clockid_t
- type Ptrauth_key
- type Qos_class_t
- type SKDocumentIndexState
- type SKIndex
- type SKIndexDocumentIterator
- type SKIndexType
- type SKSearch
- type SKSearchGroup
- type SKSearchResults
- type SKSearchType
- type SKSummary
Constants ¶
View Source
const ( KSKSearchOptionDefault = 0 KSKSearchOptionFindSimilar = 4 KSKSearchOptionNoRelevanceScores = 1 KSKSearchOptionSpaceMeansOR = 2 )
Variables ¶
This section is empty.
Functions ¶
func KSKEndTermChars ¶
func KSKEndTermChars() uintptr
func KSKLanguageTypes
deprecated
func KSKLanguageTypes() uintptr
Deprecated: No longer supported
func KSKMaximumTerms ¶
func KSKMaximumTerms() uintptr
func KSKMinTermLength ¶
func KSKMinTermLength() uintptr
func KSKProximityIndexing ¶
func KSKProximityIndexing() uintptr
func KSKStartTermChars ¶
func KSKStartTermChars() uintptr
func KSKStopWords ¶
func KSKStopWords() uintptr
func KSKSubstitutions ¶
func KSKSubstitutions() uintptr
func KSKTermChars ¶
func KSKTermChars() uintptr
func SKDocumentCreate ¶
func SKDocumentGetSchemeName ¶
func SKDocumentGetTypeID ¶
func SKDocumentGetTypeID() uint
func SKIndexAddDocument ¶
func SKIndexClose ¶
func SKIndexCompact ¶
func SKIndexCreateWithURL ¶
func SKIndexDocumentIteratorGetTypeID ¶
func SKIndexDocumentIteratorGetTypeID() uint
func SKIndexFlush ¶
func SKIndexGetDocumentCount ¶
func SKIndexGetDocumentID ¶
func SKIndexGetMaximumTermID ¶
func SKIndexGetTypeID ¶
func SKIndexGetTypeID() uint
func SKIndexMoveDocument ¶
func SKIndexOpenWithData ¶
func SKIndexOpenWithURL ¶
func SKIndexRemoveDocument ¶
func SKIndexRenameDocument ¶
func SKLoadDefaultExtractorPlugIns ¶
func SKLoadDefaultExtractorPlugIns()
func SKSearchCancel ¶
func SKSearchCreate ¶
func SKSearchFindMatches ¶
func SKSearchGetTypeID ¶
func SKSearchGetTypeID() uint
func SKSearchGroupCopyIndexes
deprecated
func SKSearchGroupCreate
deprecated
func SKSearchGroupGetTypeID
deprecated
func SKSearchGroupGetTypeID() uint
Deprecated: No longer supported
func SKSearchResultsGetCount
deprecated
func SKSearchResultsGetTypeID
deprecated
func SKSearchResultsGetTypeID() uint
Deprecated: No longer supported
func SKSummaryGetTypeID ¶
func SKSummaryGetTypeID() uint
func SymbolAvailable ¶
SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.
Types ¶
type Acl_entry_id_t ¶
type Acl_entry_id_t int64
const ( ACL_FIRST_ENTRY Acl_entry_id_t = 0 ACL_NEXT_ENTRY Acl_entry_id_t = -1 ACL_LAST_ENTRY Acl_entry_id_t = -2 )
func (Acl_entry_id_t) String ¶
func (e Acl_entry_id_t) String() string
type Acl_flag_t ¶
type Acl_flag_t int64
const ( ACL_FLAG_DEFER_INHERIT Acl_flag_t = 1 ACL_FLAG_NO_INHERIT Acl_flag_t = 131072 ACL_ENTRY_INHERITED Acl_flag_t = 16 ACL_ENTRY_FILE_INHERIT Acl_flag_t = 32 ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64 ACL_ENTRY_LIMIT_INHERIT Acl_flag_t = 128 ACL_ENTRY_ONLY_INHERIT Acl_flag_t = 256 )
func (Acl_flag_t) String ¶
func (e Acl_flag_t) String() string
type Acl_perm_t ¶
type Acl_perm_t int64
const ( ACL_READ_DATA Acl_perm_t = 2 ACL_LIST_DIRECTORY Acl_perm_t = 2 ACL_WRITE_DATA Acl_perm_t = 4 ACL_ADD_FILE Acl_perm_t = 4 ACL_EXECUTE Acl_perm_t = 8 ACL_SEARCH Acl_perm_t = 8 ACL_DELETE Acl_perm_t = 16 ACL_APPEND_DATA Acl_perm_t = 32 ACL_ADD_SUBDIRECTORY Acl_perm_t = 32 ACL_DELETE_CHILD Acl_perm_t = 64 ACL_READ_ATTRIBUTES Acl_perm_t = 128 ACL_WRITE_ATTRIBUTES Acl_perm_t = 256 ACL_READ_EXTATTRIBUTES Acl_perm_t = 512 ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024 ACL_READ_SECURITY Acl_perm_t = 2048 ACL_WRITE_SECURITY Acl_perm_t = 4096 ACL_CHANGE_OWNER Acl_perm_t = 8192 ACL_SYNCHRONIZE Acl_perm_t = 1048576 )
func (Acl_perm_t) String ¶
func (e Acl_perm_t) String() string
type Acl_type_t ¶
type Acl_type_t int64
const ( ACL_TYPE_EXTENDED Acl_type_t = 256 ACL_TYPE_ACCESS Acl_type_t = 0 ACL_TYPE_DEFAULT Acl_type_t = 1 ACL_TYPE_AFS Acl_type_t = 2 ACL_TYPE_CODA Acl_type_t = 3 ACL_TYPE_NTFS Acl_type_t = 4 ACL_TYPE_NWFS Acl_type_t = 5 )
func (Acl_type_t) String ¶
func (e Acl_type_t) String() string
type Dispatch_autorelease_frequency_t ¶
type Dispatch_autorelease_frequency_t uint64
const ( DISPATCH_AUTORELEASE_FREQUENCY_INHERIT Dispatch_autorelease_frequency_t = 0 DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1 DISPATCH_AUTORELEASE_FREQUENCY_NEVER Dispatch_autorelease_frequency_t = 2 )
func (Dispatch_autorelease_frequency_t) String ¶
func (e Dispatch_autorelease_frequency_t) String() string
type Dispatch_block_flags_t ¶
type Dispatch_block_flags_t uint64
const ( DISPATCH_BLOCK_BARRIER Dispatch_block_flags_t = 1 DISPATCH_BLOCK_DETACHED Dispatch_block_flags_t = 2 DISPATCH_BLOCK_ASSIGN_CURRENT Dispatch_block_flags_t = 4 DISPATCH_BLOCK_NO_QOS_CLASS Dispatch_block_flags_t = 8 DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16 DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32 )
func (Dispatch_block_flags_t) String ¶
func (e Dispatch_block_flags_t) String() string
type Filesec_property_t ¶
type Filesec_property_t int64
const ( FILESEC_OWNER Filesec_property_t = 1 FILESEC_GROUP Filesec_property_t = 2 FILESEC_UUID Filesec_property_t = 3 FILESEC_MODE Filesec_property_t = 4 FILESEC_ACL Filesec_property_t = 5 FILESEC_GRPUUID Filesec_property_t = 6 FILESEC_ACL_RAW Filesec_property_t = 100 FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101 )
func (Filesec_property_t) String ¶
func (e Filesec_property_t) String() string
type Mpo_flags_t ¶
type Mpo_flags_t int64
const ( MPO_PORT Mpo_flags_t = 0 MPO_SERVICE_PORT Mpo_flags_t = 1024 MPO_CONNECTION_PORT Mpo_flags_t = 2048 MPO_REPLY_PORT Mpo_flags_t = 4096 MPO_WEAK_REPLY_PORT Mpo_flags_t = 16384 MPO_NOTIFICATION_PORT Mpo_flags_t = 17408 MPO_EXCEPTION_PORT Mpo_flags_t = 32768 MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536 )
func (Mpo_flags_t) String ¶
func (e Mpo_flags_t) String() string
type Os_clockid_t ¶
type Os_clockid_t int64
const (
OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)
func (Os_clockid_t) String ¶
func (e Os_clockid_t) String() string
type Ptrauth_key ¶
type Ptrauth_key int64
const ( Ptrauth_key_none Ptrauth_key = -1 Ptrauth_key_asia Ptrauth_key = 0 Ptrauth_key_asib Ptrauth_key = 1 Ptrauth_key_asda Ptrauth_key = 2 Ptrauth_key_asdb Ptrauth_key = 3 Ptrauth_key_process_independent_code Ptrauth_key = 0 Ptrauth_key_process_dependent_code Ptrauth_key = 1 Ptrauth_key_process_independent_data Ptrauth_key = 2 Ptrauth_key_process_dependent_data Ptrauth_key = 3 Ptrauth_key_return_address Ptrauth_key = 1 Ptrauth_key_frame_pointer Ptrauth_key = 3 Ptrauth_key_function_pointer Ptrauth_key = 0 Ptrauth_key_block_function Ptrauth_key = 0 Ptrauth_key_cxx_vtable_pointer Ptrauth_key = 2 Ptrauth_key_method_list_pointer Ptrauth_key = 2 Ptrauth_key_objc_isa_pointer Ptrauth_key = 2 Ptrauth_key_objc_super_pointer Ptrauth_key = 2 Ptrauth_key_objc_sel_pointer Ptrauth_key = 3 Ptrauth_key_objc_class_ro_pointer Ptrauth_key = 2 Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2 Ptrauth_key_init_fini_pointer Ptrauth_key = 0 )
func (Ptrauth_key) String ¶
func (e Ptrauth_key) String() string
type Qos_class_t ¶
type Qos_class_t uint32
const ( QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33 QOS_CLASS_USER_INITIATED Qos_class_t = 25 QOS_CLASS_DEFAULT Qos_class_t = 21 QOS_CLASS_UTILITY Qos_class_t = 17 QOS_CLASS_BACKGROUND Qos_class_t = 9 QOS_CLASS_UNSPECIFIED Qos_class_t = 0 )
func (Qos_class_t) String ¶
func (e Qos_class_t) String() string
type SKDocumentIndexState ¶
type SKDocumentIndexState int64
const ( KSKDocumentStateNotIndexed SKDocumentIndexState = 0 KSKDocumentStateIndexed SKDocumentIndexState = 1 KSKDocumentStateAddPending SKDocumentIndexState = 2 KSKDocumentStateDeletePending SKDocumentIndexState = 3 )
func SKIndexGetDocumentState ¶
func SKIndexGetDocumentState(inIndex unsafe.Pointer, inDocument unsafe.Pointer) SKDocumentIndexState
func (SKDocumentIndexState) String ¶
func (e SKDocumentIndexState) String() string
type SKIndexDocumentIterator ¶
type SKIndexDocumentIterator struct{}
C struct: __SKIndexDocumentIterator SKIndexDocumentIterator is an opaque type.
type SKIndexType ¶
type SKIndexType int64
const ( KSKIndexUnknown SKIndexType = 0 KSKIndexInverted SKIndexType = 1 KSKIndexVector SKIndexType = 2 KSKIndexInvertedVector SKIndexType = 3 )
func SKIndexGetIndexType ¶
func SKIndexGetIndexType(inIndex unsafe.Pointer) SKIndexType
func (SKIndexType) String ¶
func (e SKIndexType) String() string
type SKSearchGroup ¶
type SKSearchGroup struct{}
C struct: __SKSearchGroup SKSearchGroup is an opaque type.
type SKSearchResults ¶
type SKSearchResults struct{}
C struct: __SKSearchResults SKSearchResults is an opaque type.
type SKSearchType ¶
type SKSearchType int64
const ( KSKSearchRanked SKSearchType = 0 KSKSearchBooleanRanked SKSearchType = 1 KSKSearchRequiredRanked SKSearchType = 2 KSKSearchPrefixRanked SKSearchType = 3 )
func (SKSearchType) String ¶
func (e SKSearchType) String() string
Click to show internal directories.
Click to hide internal directories.