repository

package
v0.0.0-...-8cfd1f9 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterConnect

func AfterConnect(ctx context.Context, conn *pgx.Conn) (err error)

Types

type Repository

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

func New

func New(log logr.Logger, pool *pgxpool.Pool) *Repository

func (*Repository) Load

func (r *Repository) Load(ctx context.Context, id string) (*widgets.Widget, error)

func (*Repository) Save

func (r *Repository) Save(ctx context.Context, widget *widgets.Widget) error

Jump to

Keyboard shortcuts

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