MCPcopy Index your code
hub / github.com/coder/coder / Export

Method Export

enterprise/audit/backends/postgres.go:33–40  ·  view source on GitHub ↗
(ctx context.Context, alog database.AuditLog, _ audit.BackendDetails)

Source from the content-addressed store, hash-verified

31}
32
33func (b *postgresBackend) Export(ctx context.Context, alog database.AuditLog, _ audit.BackendDetails) error {
34 _, err := b.db.InsertAuditLog(ctx, database.InsertAuditLogParams(alog))
35 if err != nil {
36 return xerrors.Errorf("insert audit log: %w", err)
37 }
38
39 return nil
40}

Callers

nothing calls this directly

Calls 3

InsertAuditLogParamsStruct · 0.92
InsertAuditLogMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected