MCPcopy Create free account
hub / github.com/astercloud/aster / WithType

Function WithType

pkg/memory/logic/types.go:123–127  ·  view source on GitHub ↗

WithType 按类型过滤

(memoryType string)

Source from the content-addressed store, hash-verified

121
122// WithType 按类型过滤
123func WithType(memoryType string) Filter {
124 return func(opts *FilterOptions) {
125 opts.Type = memoryType
126 }
127}
128
129// WithScope 按作用域过滤
130func WithScope(scope MemoryScope) Filter {

Callers 5

searchMethod · 0.92
SearchByTypeMethod · 0.85
TestInMemoryStore_ListFunction · 0.85
SearchByTypeMethod · 0.85
SearchByTypeMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestInMemoryStore_ListFunction · 0.68