store

package
v0.0.0-...-9245cf0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRecordNotFound = errors.New("record not found")
)

errors

Functions

This section is empty.

Types

type Store

type Store interface {
	CreateAuditLog(entry *types.AuditLog) (id string, err error)
	GetAuditLogs(query *types.AuditLogQuery) (logs []*types.AuditLog, err error)
	AuditLogsCount(query *types.AuditLogQuery) (int, error)
	AuditStatistics(query *types.AuditLogStatsQuery) ([]types.AuditLogStats, error)

	CreateApproval(approval *types.Approval) (*types.Approval, error)
	UpdateApproval(approval *types.Approval) error
	GetApproval(q *types.GetApprovalQuery) (*types.Approval, error)
	ListApprovals(q *types.GetApprovalQuery) ([]*types.Approval, error)
	DeleteApproval(approval *types.Approval) error

	OK() bool
	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL