You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
372 B
Go

package audit
import (
"context"
"time"
)
// Repository persists audit entries.
type Repository interface {
EnsureSchema(ctx context.Context) error
Append(ctx context.Context, e Entry) error
List(ctx context.Context, limit, offset int) ([]Entry, error)
Count(ctx context.Context) (int64, error)
PruneBefore(ctx context.Context, before time.Time) (int64, error)
}