repositories

package
v0.0.0-...-7a95418 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repositories

type Repositories struct {
	Repository *Repository
}

func NewRepositories

func NewRepositories(db *sql.DB) *Repositories

type Repository

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

func NewRepository

func NewRepository(db *sql.DB) *Repository

func (Repository) Create

func (r Repository) Create(code *models.Code) error

func (Repository) FindByID

func (r Repository) FindByID(id string) (*models.Code, error)

type RepositoryInterface

type RepositoryInterface interface {
	Create(*models.Code) error
	FindByID(string) (*models.Code, error)
}

Jump to

Keyboard shortcuts

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