repos

package
v0.0.0-...-76fbd6f Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainRepository

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

func NewDomain

func NewDomain(pg *sql.DB) DomainRepository

func (DomainRepository) Create

func (self DomainRepository) Create(value models.Domain) (models.Domain, error)

func (DomainRepository) GetByID

func (self DomainRepository) GetByID(id string) (models.Domain, bool)

func (DomainRepository) GetOne

func (self DomainRepository) GetOne(name string, extension string) (models.Domain, bool)

func (DomainRepository) Update

func (self DomainRepository) Update(value models.Domain) (models.Domain, error)

type IDomainRepository

type IDomainRepository interface {
	GetByID(id string) (models.Domain, bool)
	GetOne(name string, extension string) (models.Domain, bool)

	Create(value models.Domain) (models.Domain, error)
	Update(value models.Domain) (models.Domain, error)
}

type ILinkRepository

type ILinkRepository interface {
	GetOne(fromId string, toId string) (models.Link, bool)
	GetByPageID(pageId string) []models.Link

	Create(value models.Link) (models.Link, error)
	DeleteByPageID(pageId string)
}

type IPageRepository

type IPageRepository interface {
	GetByID(id string) (models.Page, bool)
	GetOne(url string) (models.Page, bool)

	Create(value models.Page) (models.Page, error)
	Update(value models.Page) (models.Page, error)
}

type LinkRepository

type LinkRepository struct {
	// contains filtered or unexported fields
}
func NewLink(pg *sql.DB) LinkRepository

func (LinkRepository) Create

func (self LinkRepository) Create(value models.Link) (models.Link, error)

func (LinkRepository) DeleteByPageID

func (self LinkRepository) DeleteByPageID(pageId string)

func (LinkRepository) GetByPageID

func (self LinkRepository) GetByPageID(pageId string) []models.Link

func (LinkRepository) GetOne

func (self LinkRepository) GetOne(fromId string, toId string) (models.Link, bool)

type PageRepository

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

func NewPage

func NewPage(pg *sql.DB) PageRepository

func (PageRepository) Create

func (self PageRepository) Create(value models.Page) (models.Page, error)

func (PageRepository) GetByID

func (self PageRepository) GetByID(id string) (models.Page, bool)

func (PageRepository) GetOne

func (self PageRepository) GetOne(url string) (models.Page, bool)

func (PageRepository) Update

func (self PageRepository) Update(value models.Page) (models.Page, error)

Jump to

Keyboard shortcuts

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