Documentation ¶
Index ¶
- type DomainRepo
- func (r *DomainRepo) Create(domain *models.Domain) error
- func (r *DomainRepo) Delete(domain *models.Domain) error
- func (r *DomainRepo) FindAll() (*[]models.Domain, error)
- func (r *DomainRepo) FindByID(id int) (*models.Domain, error)
- func (r *DomainRepo) FindByName(name string) (*models.Domain, error)
- func (r *DomainRepo) MatchBegins(name string) (*models.Domain, error)
- func (r *DomainRepo) MatchContains(name string) (*models.Domain, error)
- func (r *DomainRepo) MatchEnds(name string) (*models.Domain, error)
- func (r *DomainRepo) MatchEquals(name string) (*models.Domain, error)
- func (r *DomainRepo) Update(domain *models.Domain) error
- type RootDomainRepo
- func (r *RootDomainRepo) Create(rootDomain *models.RootDomain) error
- func (r *RootDomainRepo) Delete(rootDomain *models.RootDomain) error
- func (r *RootDomainRepo) FindByID(id int) (*models.RootDomain, error)
- func (r *RootDomainRepo) FindByName(name string) (*models.RootDomain, error)
- func (r *RootDomainRepo) Update(rootDomain *models.RootDomain) error
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) FindAll ¶ added in v1.0.2
func (r *DomainRepo) FindAll() (*[]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)
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
Click to show internal directories.
Click to hide internal directories.