Skip to main content

internal/api/records.go

internal/api · 82 lines · 5 declarations · source

Declarations

type recordListRequest

type recordListRequest struct {
DataSubjectID string `json:"data_subject_id,omitempty"`
After *pg.RecordCursor `json:"after,omitempty"`
Limit *int `json:"limit,omitempty"`
}

source

type recordHistoryRequest

type recordHistoryRequest struct {
ID string `json:"id"`
Before *pg.RecordHistoryCursor `json:"before,omitempty"`
Limit *int `json:"limit,omitempty"`
}

source

method Server.listRecords

func (s *Server) listRecords(w http.ResponseWriter, r *http.Request, grant credential.Grant)

source

method Server.recordHistory

func (s *Server) recordHistory(w http.ResponseWriter, r *http.Request, grant credential.Grant)

source

method Server.recordReadError

func (s *Server) recordReadError(w http.ResponseWriter, r *http.Request, grant credential.Grant, operation string, err error)

Keep client-supplied IDs, subjects and database error text out of both audit and diagnostics.

source