Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrBadRequest = errors.New("bad request") )
Functions ¶
This section is empty.
Types ¶
type AdminServiceInterface ¶ added in v0.6.0
type AdminServiceInterface interface {
// SavePURL saves a PURL for the given domain name.
//
// ErrBadRequest is returned if any parameter is invalid or the domain
// does not exist.
SavePURL(domain *models.Domain, name, target string) error
// CreateDomain creates a new domain.
//
// ErrBadRequest is returned if the domain already exists.
CreateDomain(domain string) error
// GetDomain returns the domain with the given name.
//
// ErrNotFound is returned if the domain does not exist.
GetDomain(name string) (*models.Domain, error)
}
type ResolveServiceInterface ¶ added in v0.6.0
type ServiceInterface ¶
type ServiceInterface interface {
AdminServiceInterface
ResolveServiceInterface
}
func NewService ¶ added in v0.6.0
func NewService(db *gorm.DB) ServiceInterface
Click to show internal directories.
Click to hide internal directories.