MCPcopy
hub / github.com/mudler/LocalAI / Record

Method Record

core/http/middleware/admission_test.go:27–32  ·  view source on GitHub ↗
(_ context.Context, e pii.PIIEvent)

Source from the content-addressed store, hash-verified

25}
26
27func (r *recordingStore) Record(_ context.Context, e pii.PIIEvent) error {
28 r.mu.Lock()
29 defer r.mu.Unlock()
30 r.events = append(r.events, e)
31 return nil
32}
33func (r *recordingStore) List(_ context.Context, _ pii.ListQuery) ([]pii.PIIEvent, error) {
34 return nil, nil
35}

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected