Documentation ¶
Overview ¶
Package database manages storage for GoPkgDoc.
Index ¶
- type Database
- func (db *Database) AddBadCrawl(path string) error
- func (db *Database) AddNewCrawl(importPath string) error
- func (db *Database) AllPackages() ([]Package, error)
- func (db *Database) Block(root string) error
- func (db *Database) BumpCrawl(projectRoot string) error
- func (db *Database) Delete(path string) error
- func (db *Database) Do(f func(*PackageInfo) error) error
- func (db *Database) Exists(path string) (bool, error)
- func (db *Database) Get(path string) (*doc.Package, []Package, time.Time, error)
- func (db *Database) GetDoc(path string) (*doc.Package, time.Time, error)
- func (db *Database) GetGob(key string, value interface{}) error
- func (db *Database) GoIndex() ([]Package, error)
- func (db *Database) GoSubrepoIndex() ([]Package, error)
- func (db *Database) ImportGraph(pdoc *doc.Package, level DepLevel) ([]Package, [][2]int, error)
- func (db *Database) ImporterCount(path string) (int, error)
- func (db *Database) Importers(path string) ([]Package, error)
- func (db *Database) IncrementCounter(key string, delta float64) (float64, error)
- func (db *Database) IncrementPopularScore(path string) error
- func (db *Database) Index() ([]Package, error)
- func (db *Database) IsBlocked(path string) (bool, error)
- func (db *Database) Packages(paths []string) ([]Package, error)
- func (db *Database) PopNewCrawl() (string, bool, error)
- func (db *Database) Popular(count int) ([]Package, error)
- func (db *Database) PopularWithScores() ([]Package, error)
- func (db *Database) Project(projectRoot string) ([]Package, error)
- func (db *Database) Put(pdoc *doc.Package, nextCrawl time.Time, hide bool) error
- func (db *Database) PutGob(key string, value interface{}) error
- func (db *Database) Query(q string) ([]Package, error)
- func (db *Database) SetNextCrawlEtag(projectRoot string, etag string, t time.Time) error
- type DepLevel
- type Package
- type PackageInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
func (*Database) AddBadCrawl ¶
func (*Database) AddNewCrawl ¶
func (*Database) AllPackages ¶
func (*Database) Do ¶
func (db *Database) Do(f func(*PackageInfo) error) error
Do executes function f for each document in the database.
func (*Database) Get ¶
Get gets the package documenation and sub-directories for the the given import path.
func (*Database) GoSubrepoIndex ¶
func (*Database) ImportGraph ¶
func (*Database) IncrementCounter ¶
func (*Database) IncrementPopularScore ¶
func (*Database) PopularWithScores ¶
type DepLevel ¶
type DepLevel int
DepLevel specifies the level of depdenencies to show in an import graph.
Click to show internal directories.
Click to hide internal directories.