repository

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainRepo

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

func NewDomainRepo

func NewDomainRepo(db *gorm.DB) *DomainRepo

func (*DomainRepo) Create

func (r *DomainRepo) Create(domain *models.Domain) error

func (*DomainRepo) Delete

func (r *DomainRepo) Delete(domain *models.Domain) error

func (*DomainRepo) FindAll added in v1.0.2

func (r *DomainRepo) FindAll() (*[]models.Domain, error)

func (*DomainRepo) FindByID

func (r *DomainRepo) FindByID(id int) (*models.Domain, error)

func (*DomainRepo) FindByName

func (r *DomainRepo) FindByName(name string) (*models.Domain, error)

func (*DomainRepo) MatchBegins added in v1.0.4

func (r *DomainRepo) MatchBegins(name string) (*models.Domain, error)

func (*DomainRepo) MatchContains added in v1.0.4

func (r *DomainRepo) MatchContains(name string) (*models.Domain, error)

func (*DomainRepo) MatchEnds added in v1.0.4

func (r *DomainRepo) MatchEnds(name string) (*models.Domain, error)

func (*DomainRepo) MatchEquals added in v1.0.4

func (r *DomainRepo) MatchEquals(name string) (*models.Domain, error)

func (*DomainRepo) Update

func (r *DomainRepo) Update(domain *models.Domain) error

type RootDomainRepo

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

func NewRootDomainRepo

func NewRootDomainRepo(db *gorm.DB) *RootDomainRepo

func (*RootDomainRepo) Create

func (r *RootDomainRepo) Create(rootDomain *models.RootDomain) error

func (*RootDomainRepo) Delete

func (r *RootDomainRepo) Delete(rootDomain *models.RootDomain) error

func (*RootDomainRepo) FindByID

func (r *RootDomainRepo) FindByID(id int) (*models.RootDomain, error)

func (*RootDomainRepo) FindByName

func (r *RootDomainRepo) FindByName(name string) (*models.RootDomain, error)

func (*RootDomainRepo) Update

func (r *RootDomainRepo) Update(rootDomain *models.RootDomain) error

Jump to

Keyboard shortcuts

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