Documentation ¶
Index ¶
- type DomainRepository
- func (self DomainRepository) Create(value models.Domain) (models.Domain, error)
- func (self DomainRepository) GetByID(id string) (models.Domain, bool)
- func (self DomainRepository) GetOne(name string, extension string) (models.Domain, bool)
- func (self DomainRepository) Update(value models.Domain) (models.Domain, error)
- type IDomainRepository
- type ILinkRepository
- type IPageRepository
- type LinkRepository
- type PageRepository
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) GetByID ¶
func (self DomainRepository) GetByID(id string) (models.Domain, bool)
type IDomainRepository ¶
type ILinkRepository ¶
type IPageRepository ¶
type LinkRepository ¶
type LinkRepository struct {
// contains filtered or unexported fields
}
func NewLink ¶
func NewLink(pg *sql.DB) LinkRepository
func (LinkRepository) DeleteByPageID ¶
func (self LinkRepository) DeleteByPageID(pageId string)
func (LinkRepository) GetByPageID ¶
func (self LinkRepository) GetByPageID(pageId string) []models.Link
type PageRepository ¶
type PageRepository struct {
// contains filtered or unexported fields
}
func NewPage ¶
func NewPage(pg *sql.DB) PageRepository
Click to show internal directories.
Click to hide internal directories.