repository

package
v0.0.0-...-61270f2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

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

Console is the repository for console.

func NewConsole

func NewConsole(db DatabaseQueryExecutor) *Console

NewConsole creates a new console repository.

func (*Console) FindByID

func (c *Console) FindByID(ctx context.Context, id string) (*entity.Console, error)

FindByID returns a console by id.

func (*Console) Save

func (c *Console) Save(ctx context.Context, console *entity.Console) error

Save saves a console.

type DatabaseQueryExecutor

type DatabaseQueryExecutor interface {
	Exec(ctx context.Context, sql string, args ...any) (int64, error)
	QueryRow(ctx context.Context, sql string, args ...any) pgx.Row
}

DatabaseQueryExecutor is the interface for executing database queries.

Jump to

Keyboard shortcuts

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