fork from d7z-project/caddy-gitea-pages
This commit is contained in:
parent
50a258ea59
commit
9d86fd33c6
86 changed files with 2452 additions and 4500 deletions
21
pages/page.go
Normal file
21
pages/page.go
Normal file
|
@ -0,0 +1,21 @@
|
|||
package pages
|
||||
|
||||
import "fmt"
|
||||
|
||||
type PageDomain struct {
|
||||
Owner string `json:"owner"`
|
||||
Repo string `json:"repo"`
|
||||
Branch string `json:"branch"`
|
||||
}
|
||||
|
||||
func NewPageDomain(owner string, repo string, branch string) *PageDomain {
|
||||
return &PageDomain{
|
||||
owner,
|
||||
repo,
|
||||
branch,
|
||||
}
|
||||
}
|
||||
|
||||
func (p *PageDomain) Key() string {
|
||||
return fmt.Sprintf("%s|%s|%s", p.Owner, p.Repo, p.Branch)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue