Documentation ¶
Index ¶
- Constants
- Variables
- func CountDomainsByUser(ctx context.Context, db *sqlx.DB, count *int64, userID string) error
- func CountPackagesByDomainID(ctx context.Context, db *sqlx.DB, count *int64, domainID int64) error
- func CountPackagesByUser(ctx context.Context, db *sqlx.DB, count *int64, userID string) error
- func FindDomainByChallengeTXT(ctx context.Context, db *sqlx.DB, dest interface{}, name, txt string) error
- func FindDomainByUser(ctx context.Context, db *sqlx.DB, dest interface{}, id int64, userID string) error
- func FindDomainsByUser(ctx context.Context, db *sqlx.DB, dest interface{}, userID string) error
- func FindPackageByDomainAndPath(ctx context.Context, db *sqlx.DB, pkg interface{}, domain, path string) error
- func FindPackageByUser(ctx context.Context, db *sqlx.DB, pkg interface{}, id int64, userID string) error
- type Action
- type Calendar
- type Domain
- type Model
- type Package
- func (pkg Package) Delete(ctx context.Context, db *sqlx.DB) error
- func (pkg Package) DocsURL() string
- func (pkg Package) ImportMeta() string
- func (pkg *Package) Insert(ctx context.Context, db *sqlx.DB) error
- func (pkg Package) Prefix() string
- func (pkg *Package) Update(ctx context.Context, db *sqlx.DB) error
Constants ¶
View Source
const ( VCSGit = "git" VCSSvn = "svn" VCSBzr = "bzr" VCSHg = "hg" VCSFossil = "fossil" )
Version control system constants.
View Source
const (
ActionGoGet = "go-get"
)
Variables ¶
Functions ¶
func CountDomainsByUser ¶
func CountPackagesByDomainID ¶
func CountPackagesByUser ¶
func FindDomainByUser ¶
func FindDomainsByUser ¶
Types ¶
type Action ¶
type Domain ¶
type Package ¶
type Package struct { Model DomainID int64 `db:"domain_id" json:"domain_id" schema:"domain_id"` Path string `db:"path" json:"path" schema:"path"` VCS string `db:"vcs" json:"vcs" schema:"vcs"` Root string `db:"root" json:"root" schema:"root"` Docs string `db:"docs" json:"docs" schema:"docs"` Domain Domain `db:"domain,prefix=domain."` }
Package is a model that mapping to table "packages".
func NewPackage ¶
func (Package) ImportMeta ¶
ImportMeta returns go-import meta value.
Click to show internal directories.
Click to hide internal directories.