repositories

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditModel

type AuditModel struct {
	Timestamp time.Time          `db:"timestamp"`
	Action    string             `db:"action"`
	Actor     string             `db:"actor"`
	Data      types.NullJSONText `db:"data"`
	Metadata  types.NullJSONText `db:"metadata"`
}

type PostgresRepository

type PostgresRepository struct {
	// contains filtered or unexported fields
}

func NewPostgresRepository

func NewPostgresRepository(db *sql.DB) *PostgresRepository

func (*PostgresRepository) DB

func (r *PostgresRepository) DB() *sql.DB

func (*PostgresRepository) Init

func (r *PostgresRepository) Init(ctx context.Context) error

func (*PostgresRepository) Insert

func (r *PostgresRepository) Insert(ctx context.Context, l *audit.Log) error

Jump to

Keyboard shortcuts

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