Versions in this module Expand all Collapse all v0 v0.0.3 May 6, 2015 v0.0.2 May 6, 2015 Changes in this version + const DefaultPerPage + const Git + const Hg + const ImportTaskOp + const PersonStatAuthors + const PersonStatClients + const PersonStatContributedToRepos + const PersonStatDefs + const PersonStatDependencies + const PersonStatDependents + const PersonStatExportedDefs + const PersonStatOwnedRepos + const RepoStatAuthors + const RepoStatClients + const RepoStatDefs + const RepoStatDependencies + const RepoStatDependents + const RepoStatExportedDefs + const RepoStatXRefs + var ErrBuildNotFound = errors.New("build not found") + var ErrForbidden = errors.New("repository is unavailable") + var ErrNoRepoBuild = errors.New("no suitable repo build found for revspec") + var ErrNoScheme = errors.New("clone URL has no scheme") + var ErrNonStandardURI = errors.New(...) + var ErrNotExist = errors.New("repository does not exist on external host") + var ErrNotPersisted = errors.New(...) + var ErrUserNotExist = errors.New("user does not exist") + var ExternalHostTimeout = time.Second * 7 + var RepoStatTypes = map[RepoStatType]struct + var Router = router.NewAPIRouter(nil) + func Bool(v bool) *bool + func CheckResponse(r *http.Response) error + func GetBuildDataFile(s BuildDataService, file BuildDataFileSpec) (io.ReadCloser, os.FileInfo, error) + func Int(v int) *int + func IsDefError(err error) bool + func IsForbidden(err error) bool + func IsGitHubRepoURI(repoURI string) bool + func IsGoogleCodeRepoURI(repoURI string) bool + func IsHTTPErrorCode(err error, statusCode int) bool + func IsNotPresent(err error) bool + func MapByURI(repos []*Repo) map[string]*Repo + func ParseRepoAndCommitID(repoAndCommitID string) (uri, commitID string) + func ResetRouter() + func String(v string) *string + func TokenType(tok Token) string + func URL(route string, routeVars map[string]string, opt interface{}) (*url.URL, error) + type AnyToken string + func (u AnyToken) String() string + type AugmentedDefAuthor struct + Person *Person + type AugmentedDefClient struct + Person *Person + type AugmentedDefDependent struct + Repo *Repo + type AugmentedPersonUsageByClient struct + Author *Person + type AugmentedPersonUsageOfAuthor struct + Client *Person + type AugmentedRepoAuthor struct + Person *Person + type AugmentedRepoClient struct + Person *Person + type AugmentedRepoContribution struct + Repo *Repo + type AugmentedRepoDependency struct + Repo *Repo + type AugmentedRepoDependent struct + Repo *Repo + type AugmentedRepoUsageByClient struct + DefRepo *Repo + type AugmentedRepoUsageOfAuthor struct + Repo *Repo + type AuthorStats struct + DefCount int + DefsProportion float64 + ExportedDefCount int + ExportedDefsProportion float64 + type AuthorshipInfo struct + AuthorEmail string + LastCommitDate time.Time + LastCommitID string + type Badge struct + Description string + ImageURL string + Markdown string + Name string + UncountedImageURL string + func (b *Badge) HTML() string + type Build struct + BID int64 + CommitID string + CreatedAt time.Time + EndedAt db_common.NullTime + Failure bool + HeartbeatAt db_common.NullTime + Host string + Killed bool + Purged bool + Repo int + RepoURI *string + StartedAt db_common.NullTime + Success bool + func (b *Build) Spec() BuildSpec + type BuildConfig struct + Import bool + Priority int + Queue bool + UseCache bool + type BuildCreateOptions struct + Force bool + type BuildDataFileSpec struct + Path string + RepoRev RepoRevSpec + func (s *BuildDataFileSpec) RouteVars() map[string]string + type BuildDataService interface + FileSystem func(repo RepoRevSpec) (rwvfs.FileSystem, error) + type BuildGetLogOptions struct + MinID string + type BuildGetOptions struct + type BuildListOptions struct + Active bool + CommitID string + Direction string + Ended bool + Failed bool + Purged bool + Queued bool + Repo string + Sort string + Succeeded bool + type BuildMeta struct + PullNumber int + PullRepo int + type BuildSpec struct + BID int64 + func (b BuildSpec) IDString() string + func (s *BuildSpec) RouteVars() map[string]string + type BuildTask struct + BID int64 + CreatedAt db_common.NullTime + EndedAt db_common.NullTime + Failure bool + Op string + Order int + Queue bool + StartedAt db_common.NullTime + Success bool + TaskID int64 + Unit string + UnitType string + func (t *BuildTask) Spec() TaskSpec + type BuildTaskListOptions struct + type BuildUpdate struct + EndedAt *time.Time + Failure *bool + HeartbeatAt *time.Time + Host *string + Killed *bool + Priority *int + Purged *bool + StartedAt *time.Time + Success *bool + type BuildsService interface + Create func(repoRev RepoRevSpec, opt *BuildCreateOptions) (*Build, Response, error) + CreateTasks func(build BuildSpec, tasks []*BuildTask) ([]*BuildTask, Response, error) + DequeueNext func() (*Build, Response, error) + Get func(build BuildSpec, opt *BuildGetOptions) (*Build, Response, error) + GetLog func(build BuildSpec, opt *BuildGetLogOptions) (*LogEntries, Response, error) + GetTaskLog func(task TaskSpec, opt *BuildGetLogOptions) (*LogEntries, Response, error) + List func(opt *BuildListOptions) ([]*Build, Response, error) + ListBuildTasks func(build BuildSpec, opt *BuildTaskListOptions) ([]*BuildTask, Response, error) + Update func(build BuildSpec, info BuildUpdate) (*Build, Response, error) + UpdateTask func(task TaskSpec, info TaskUpdate) (*BuildTask, Response, error) + type Checklist struct + Done int + Todo int + type Client struct + BaseURL *url.URL + BuildData BuildDataService + Builds BuildsService + Defs DefsService + Deltas DeltasService + Issues IssuesService + Markdown MarkdownService + Orgs OrgsService + People PeopleService + PullRequests PullRequestsService + RepoTree RepoTreeService + Repos ReposService + Search SearchService + Units UnitsService + UserAgent string + Users UsersService + func NewClient(httpClient *http.Client) *Client + func NewMockClient() *Client + func (c *Client) Do(req *http.Request, v interface{}) (Response, error) + func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + func (c *Client) URL(route string, routeVars map[string]string, opt interface{}) (*url.URL, error) + type ClientStats struct + DefRepo string + DefUnit nnz.String + DefUnitType nnz.String + RefCount int + type CombinedStatus struct + type Commit struct + type Completions struct + ResolutionFatal bool + ResolveErrors []TokenError + ResolvedTokens Tokens + TokenCompletions Tokens + type Counter struct + Description string + ImageURL string + Markdown string + Name string + UncountedImageURL string + func (c *Counter) HTML() string + type Def struct + DocHTML string + FmtStrings *DefFormatStrings + Stat graph.Stats + func (s *Def) DefSpec() DefSpec + func (s *Def) RRefs() int + func (s *Def) TotalExamples() int + func (s *Def) TotalRefs() int + func (s *Def) URefs() int + func (s *Def) XRefs() int + type DefAuthor struct + Email nnz.String + UID nnz.Int + type DefAuthorsByBytes []*DefAuthor + func (v DefAuthorsByBytes) Len() int + func (v DefAuthorsByBytes) Less(i, j int) bool + func (v DefAuthorsByBytes) Swap(i, j int) + type DefAuthorship struct + Bytes int + BytesProportion float64 + Exported bool + type DefClient struct + Email nnz.String + UID nnz.Int + UseCount int + type DefDelta struct + Base *Def + Head *Def + func (dd DefDelta) Added() bool + func (dd DefDelta) Changed() bool + func (dd DefDelta) Deleted() bool + type DefDependent struct + Count int + FromRepo string + type DefFormatStrings struct + DefKeyword string + Kind string + Language string + Name QualFormatStrings + NameAndTypeSeparator string + Type QualFormatStrings + type DefGetOptions struct + Doc bool + Stats bool + type DefListAuthorsOptions struct + type DefListClientsOptions struct + type DefListDependentsOptions struct + type DefListExamplesOptions struct + Formatted bool + Repo string + TokenizedSource bool + type DefListOptions struct + ByteEnd uint32 + ByteStart uint32 + DefKeys []*graph.DefKey + Direction string + Doc bool + Exported bool + File string + FilePathPrefix string + Fuzzy bool + IncludeTest bool + Kinds []string + Name string + Nonlocal bool + Path string + Query string + RepoRevs []string + Sort string + Stats bool + Unit string + UnitType string + func (o *DefListOptions) DefFilters() []store.DefFilter + type DefListRefsOptions struct + Authorship bool + Repo string + type DefListVersionsOptions struct + type DefSpec struct + CommitID string + Path string + Repo string + Unit string + UnitType string + func NewDefSpecFromDefKey(key graph.DefKey) DefSpec + func (s *DefSpec) DefKey() graph.DefKey + func (s *DefSpec) RouteVars() map[string]string + type DefsService interface + Get func(def DefSpec, opt *DefGetOptions) (*Def, Response, error) + List func(opt *DefListOptions) ([]*Def, Response, error) + ListAuthors func(def DefSpec, opt *DefListAuthorsOptions) ([]*AugmentedDefAuthor, Response, error) + ListClients func(def DefSpec, opt *DefListClientsOptions) ([]*AugmentedDefClient, Response, error) + ListDependents func(def DefSpec, opt *DefListDependentsOptions) ([]*AugmentedDefDependent, Response, error) + ListExamples func(def DefSpec, opt *DefListExamplesOptions) ([]*Example, Response, error) + ListRefs func(def DefSpec, opt *DefListRefsOptions) ([]*Ref, Response, error) + ListVersions func(def DefSpec, opt *DefListVersionsOptions) ([]*Def, Response, error) + type Delta struct + Base RepoRevSpec + BaseBuild *Build + BaseCommit *Commit + BaseRepo *Repo + Head RepoRevSpec + HeadBuild *Build + HeadCommit *Commit + HeadRepo *Repo + func (d *Delta) BaseAndHeadBuildsSuccessful() bool + func (d *Delta) DeltaSpec() DeltaSpec + type DeltaAffectedPerson struct + Defs []*Def + type DeltaAffectedRepo struct + DefRefs []*DeltaDefRefs + type DeltaDefRefs struct + Def *Def + Refs []*Example + type DeltaDefs struct + Defs []*DefDelta + DiffStat diff.Stat + func (v DeltaDefs) Len() int + func (v DeltaDefs) Less(i, j int) bool + func (v DeltaDefs) Swap(i, j int) + type DeltaDependencies struct + type DeltaFiles struct + Delta *Delta + FileDiffs []*FileDiff + Stats diff.Stat + func (d *DeltaFiles) DiffStat() diff.Stat + type DeltaFilter struct + Unit string + UnitType string + func (f DeltaFilter) DefFilters() []store.DefFilter + type DeltaGetOptions struct + type DeltaListAffectedAuthorsOptions struct + type DeltaListAffectedClientsOptions struct + type DeltaListAffectedDependentsOptions struct + NotFormatted bool + type DeltaListDefsOptions struct + type DeltaListDependenciesOptions struct + type DeltaListFilesOptions struct + Filter string + Formatted bool + Tokenized bool + type DeltaListIncomingOptions struct + type DeltaListReviewersOptions struct + type DeltaListUnitsOptions struct + type DeltaReviewer struct + Defs []*Def + ReasonSuggested string + Suggested bool + type DeltaSpec struct + Base RepoRevSpec + Head RepoRevSpec + func UnmarshalDeltaSpec(routeVars map[string]string) (DeltaSpec, error) + func (s DeltaSpec) RouteVars() map[string]string + type DeltasService interface + Get func(ds DeltaSpec, opt *DeltaGetOptions) (*Delta, Response, error) + ListAffectedAuthors func(ds DeltaSpec, opt *DeltaListAffectedAuthorsOptions) ([]*DeltaAffectedPerson, Response, error) + ListAffectedClients func(ds DeltaSpec, opt *DeltaListAffectedClientsOptions) ([]*DeltaAffectedPerson, Response, error) + ListAffectedDependents func(ds DeltaSpec, opt *DeltaListAffectedDependentsOptions) ([]*DeltaAffectedRepo, Response, error) + ListDefs func(ds DeltaSpec, opt *DeltaListDefsOptions) (*DeltaDefs, Response, error) + ListDependencies func(ds DeltaSpec, opt *DeltaListDependenciesOptions) (*DeltaDependencies, Response, error) + ListFiles func(ds DeltaSpec, opt *DeltaListFilesOptions) (*DeltaFiles, Response, error) + ListIncoming func(rr RepoRevSpec, opt *DeltaListIncomingOptions) ([]*Delta, Response, error) + ListReviewers func(ds DeltaSpec, opt *DeltaListReviewersOptions) ([]*DeltaReviewer, Response, error) + ListUnits func(ds DeltaSpec, opt *DeltaListUnitsOptions) ([]*UnitDelta, Response, error) + type EmailAddr struct + Blacklisted bool + Email string + Guessed bool + Primary bool + Verified bool + type ErrRedirect struct + RedirectURI string + func ErrRedirectFromString(msg string) *ErrRedirect + func (e ErrRedirect) Error() string + type ErrRenamed struct + NewURI string + OldURI string + func (e ErrRenamed) Error() string + type ErrUserRenamed struct + NewLogin string + OldLogin string + func (e ErrUserRenamed) Error() string + type ErrorResponse struct + Message string + Response *http.Response + func (r *ErrorResponse) Error() string + func (r *ErrorResponse) HTTPStatusCode() int + type Example struct + EndLine int + Error bool + SourceCode *SourceCode + SrcHTML template.HTML + StartLine int + type Examples []*Example + func (vs Examples) Len() int + func (vs Examples) Less(i, j int) bool + func (vs Examples) Swap(i, j int) + type FileData struct + Annotated template.HTML + EntireFile bool + File string + Range *Range + Raw []byte + RepoRev RepoRevSpec + type FileDiff struct + Hunks []*Hunk + Stats diff.Stat + type FileToken struct + Entry *vcsclient.TreeEntry + Path string + func (t FileToken) String() string + type FormatResult struct + LineStartByteOffsets []int + NumRefs int + TooManyRefs bool + type GitHubUserSpec struct + ID int + Login string + func (s GitHubUserSpec) RouteVars() map[string]string + type HTTPResponse struct + func (r *HTTPResponse) TotalCount() int + type Hunk struct + BaseSource *SourceCode + BodySource *SourceCode + HeadSource *SourceCode + LinePrefixes string + type Issue struct + func (r *Issue) Spec() IssueSpec + type IssueComment struct + Checklist *Checklist + RenderedBody string + type IssueCommentSpec struct + Comment int + Issue IssueSpec + func (s IssueCommentSpec) RouteVars() map[string]string + type IssueGetOptions struct + type IssueListCommentsOptions struct + type IssueListOptions struct + State string + type IssueSpec struct + Number int + Repo RepoSpec + func UnmarshalIssueSpec(routeVars map[string]string) (IssueSpec, error) + func (s IssueSpec) RouteVars() map[string]string + type IssuesService interface + CreateComment func(issue IssueSpec, comment *IssueComment) (*IssueComment, Response, error) + DeleteComment func(issue IssueSpec, commentID int) (Response, error) + EditComment func(issue IssueSpec, comment *IssueComment) (*IssueComment, Response, error) + Get func(issue IssueSpec, opt *IssueGetOptions) (*Issue, Response, error) + ListByRepo func(repo RepoSpec, opt *IssueListOptions) ([]*Issue, Response, error) + ListComments func(issue IssueSpec, opt *IssueListCommentsOptions) ([]*IssueComment, Response, error) + type ListOptions struct + Page int + PerPage int + func (o ListOptions) Limit() int + func (o ListOptions) Offset() int + func (o ListOptions) PageOrDefault() int + func (o ListOptions) PerPageOrDefault() int + type LogEntries struct + Entries []string + MaxID string + type MarkdownData struct + Checklist *Checklist + Rendered []byte + type MarkdownOpt struct + EnableCheckboxes bool + type MarkdownRequestBody struct + Markdown []byte + type MarkdownService interface + Render func(markdown []byte, opt MarkdownOpt) (*MarkdownData, Response, error) + type MockBuildDataService struct + FileSystem_ func(repo RepoRevSpec) (rwvfs.FileSystem, error) + func (s MockBuildDataService) FileSystem(repo RepoRevSpec) (rwvfs.FileSystem, error) + type MockBuildsService struct + CreateTasks_ func(build BuildSpec, tasks []*BuildTask) ([]*BuildTask, Response, error) + Create_ func(repoRev RepoRevSpec, opt *BuildCreateOptions) (*Build, Response, error) + DequeueNext_ func() (*Build, Response, error) + GetLog_ func(build BuildSpec, opt *BuildGetLogOptions) (*LogEntries, Response, error) + GetTaskLog_ func(task TaskSpec, opt *BuildGetLogOptions) (*LogEntries, Response, error) + Get_ func(build BuildSpec, opt *BuildGetOptions) (*Build, Response, error) + ListBuildTasks_ func(build BuildSpec, opt *BuildTaskListOptions) ([]*BuildTask, Response, error) + List_ func(opt *BuildListOptions) ([]*Build, Response, error) + UpdateTask_ func(task TaskSpec, info TaskUpdate) (*BuildTask, Response, error) + Update_ func(build BuildSpec, info BuildUpdate) (*Build, Response, error) + func (s MockBuildsService) Create(repoRev RepoRevSpec, opt *BuildCreateOptions) (*Build, Response, error) + func (s MockBuildsService) CreateTasks(build BuildSpec, tasks []*BuildTask) ([]*BuildTask, Response, error) + func (s MockBuildsService) DequeueNext() (*Build, Response, error) + func (s MockBuildsService) Get(build BuildSpec, opt *BuildGetOptions) (*Build, Response, error) + func (s MockBuildsService) GetLog(build BuildSpec, opt *BuildGetLogOptions) (*LogEntries, Response, error) + func (s MockBuildsService) GetTaskLog(task TaskSpec, opt *BuildGetLogOptions) (*LogEntries, Response, error) + func (s MockBuildsService) List(opt *BuildListOptions) ([]*Build, Response, error) + func (s MockBuildsService) ListBuildTasks(build BuildSpec, opt *BuildTaskListOptions) ([]*BuildTask, Response, error) + func (s MockBuildsService) Update(build BuildSpec, info BuildUpdate) (*Build, Response, error) + func (s MockBuildsService) UpdateTask(task TaskSpec, info TaskUpdate) (*BuildTask, Response, error) + type MockDefsService struct + Get_ func(def DefSpec, opt *DefGetOptions) (*Def, Response, error) + ListAuthors_ func(def DefSpec, opt *DefListAuthorsOptions) ([]*AugmentedDefAuthor, Response, error) + ListClients_ func(def DefSpec, opt *DefListClientsOptions) ([]*AugmentedDefClient, Response, error) + ListDependents_ func(def DefSpec, opt *DefListDependentsOptions) ([]*AugmentedDefDependent, Response, error) + ListExamples_ func(def DefSpec, opt *DefListExamplesOptions) ([]*Example, Response, error) + ListRefs_ func(def DefSpec, opt *DefListRefsOptions) ([]*Ref, Response, error) + ListVersions_ func(def DefSpec, opt *DefListVersionsOptions) ([]*Def, Response, error) + List_ func(opt *DefListOptions) ([]*Def, Response, error) + func (s MockDefsService) Get(def DefSpec, opt *DefGetOptions) (*Def, Response, error) + func (s MockDefsService) List(opt *DefListOptions) ([]*Def, Response, error) + func (s MockDefsService) ListAuthors(def DefSpec, opt *DefListAuthorsOptions) ([]*AugmentedDefAuthor, Response, error) + func (s MockDefsService) ListClients(def DefSpec, opt *DefListClientsOptions) ([]*AugmentedDefClient, Response, error) + func (s MockDefsService) ListDependents(def DefSpec, opt *DefListDependentsOptions) ([]*AugmentedDefDependent, Response, error) + func (s MockDefsService) ListExamples(def DefSpec, opt *DefListExamplesOptions) ([]*Example, Response, error) + func (s MockDefsService) ListRefs(def DefSpec, opt *DefListRefsOptions) ([]*Ref, Response, error) + func (s MockDefsService) ListVersions(def DefSpec, opt *DefListVersionsOptions) ([]*Def, Response, error) + type MockDeltasService struct + Get_ func(ds DeltaSpec, opt *DeltaGetOptions) (*Delta, Response, error) + ListAffectedAuthors_ func(ds DeltaSpec, opt *DeltaListAffectedAuthorsOptions) ([]*DeltaAffectedPerson, Response, error) + ListAffectedClients_ func(ds DeltaSpec, opt *DeltaListAffectedClientsOptions) ([]*DeltaAffectedPerson, Response, error) + ListAffectedDependents_ func(ds DeltaSpec, opt *DeltaListAffectedDependentsOptions) ([]*DeltaAffectedRepo, Response, error) + ListDefs_ func(ds DeltaSpec, opt *DeltaListDefsOptions) (*DeltaDefs, Response, error) + ListDependencies_ func(ds DeltaSpec, opt *DeltaListDependenciesOptions) (*DeltaDependencies, Response, error) + ListFiles_ func(ds DeltaSpec, opt *DeltaListFilesOptions) (*DeltaFiles, Response, error) + ListIncoming_ func(rr RepoRevSpec, opt *DeltaListIncomingOptions) ([]*Delta, Response, error) + ListReviewers_ func(ds DeltaSpec, opt *DeltaListReviewersOptions) ([]*DeltaReviewer, Response, error) + ListUnits_ func(ds DeltaSpec, opt *DeltaListUnitsOptions) ([]*UnitDelta, Response, error) + func (s MockDeltasService) Get(ds DeltaSpec, opt *DeltaGetOptions) (*Delta, Response, error) + func (s MockDeltasService) ListAffectedAuthors(ds DeltaSpec, opt *DeltaListAffectedAuthorsOptions) ([]*DeltaAffectedPerson, Response, error) + func (s MockDeltasService) ListAffectedClients(ds DeltaSpec, opt *DeltaListAffectedClientsOptions) ([]*DeltaAffectedPerson, Response, error) + func (s MockDeltasService) ListAffectedDependents(ds DeltaSpec, opt *DeltaListAffectedDependentsOptions) ([]*DeltaAffectedRepo, Response, error) + func (s MockDeltasService) ListDefs(ds DeltaSpec, opt *DeltaListDefsOptions) (*DeltaDefs, Response, error) + func (s MockDeltasService) ListDependencies(ds DeltaSpec, opt *DeltaListDependenciesOptions) (*DeltaDependencies, Response, error) + func (s MockDeltasService) ListFiles(ds DeltaSpec, opt *DeltaListFilesOptions) (*DeltaFiles, Response, error) + func (s MockDeltasService) ListIncoming(rr RepoRevSpec, opt *DeltaListIncomingOptions) ([]*Delta, Response, error) + func (s MockDeltasService) ListReviewers(ds DeltaSpec, opt *DeltaListReviewersOptions) ([]*DeltaReviewer, Response, error) + func (s MockDeltasService) ListUnits(ds DeltaSpec, opt *DeltaListUnitsOptions) ([]*UnitDelta, Response, error) + type MockIssuesService struct + CreateComment_ func(issue IssueSpec, comment *IssueComment) (*IssueComment, Response, error) + DeleteComment_ func(issue IssueSpec, commentID int) (Response, error) + EditComment_ func(issue IssueSpec, comment *IssueComment) (*IssueComment, Response, error) + Get_ func(issue IssueSpec, opt *IssueGetOptions) (*Issue, Response, error) + ListByRepo_ func(repo RepoSpec, opt *IssueListOptions) ([]*Issue, Response, error) + ListComments_ func(issue IssueSpec, opt *IssueListCommentsOptions) ([]*IssueComment, Response, error) + func (s MockIssuesService) CreateComment(issue IssueSpec, comment *IssueComment) (*IssueComment, Response, error) + func (s MockIssuesService) DeleteComment(issue IssueSpec, commentID int) (Response, error) + func (s MockIssuesService) EditComment(issue IssueSpec, comment *IssueComment) (*IssueComment, Response, error) + func (s MockIssuesService) Get(issue IssueSpec, opt *IssueGetOptions) (*Issue, Response, error) + func (s MockIssuesService) ListByRepo(repo RepoSpec, opt *IssueListOptions) ([]*Issue, Response, error) + func (s MockIssuesService) ListComments(issue IssueSpec, opt *IssueListCommentsOptions) ([]*IssueComment, Response, error) + type MockMarkdownService struct + Render_ func(markdown []byte, opt MarkdownOpt) (*MarkdownData, Response, error) + func (s MockMarkdownService) Render(markdown []byte, opt MarkdownOpt) (*MarkdownData, Response, error) + type MockOrgsService struct + GetSettings_ func(org OrgSpec) (*OrgSettings, Response, error) + Get_ func(org OrgSpec) (*Org, Response, error) + ListMembers_ func(org OrgSpec, opt *OrgListMembersOptions) ([]*User, Response, error) + UpdateSettings_ func(org OrgSpec, settings OrgSettings) (Response, error) + func (s MockOrgsService) Get(org OrgSpec) (*Org, Response, error) + func (s MockOrgsService) GetSettings(org OrgSpec) (*OrgSettings, Response, error) + func (s MockOrgsService) ListMembers(org OrgSpec, opt *OrgListMembersOptions) ([]*User, Response, error) + func (s MockOrgsService) UpdateSettings(org OrgSpec, settings OrgSettings) (Response, error) + type MockPeopleService struct + Get_ func(person PersonSpec) (*Person, Response, error) + func (s MockPeopleService) Get(person PersonSpec) (*Person, Response, error) + type MockPullRequestsService struct + CreateComment_ func(pull PullRequestSpec, comment *PullRequestComment) (*PullRequestComment, Response, error) + DeleteComment_ func(pull PullRequestSpec, commentID int) (Response, error) + EditComment_ func(pull PullRequestSpec, comment *PullRequestComment) (*PullRequestComment, Response, error) + Get_ func(pull PullRequestSpec, opt *PullRequestGetOptions) (*PullRequest, Response, error) + ListByRepo_ func(repo RepoSpec, opt *PullRequestListOptions) ([]*PullRequest, Response, error) + ListComments_ func(pull PullRequestSpec, opt *PullRequestListCommentsOptions) ([]*PullRequestComment, Response, error) + Merge_ func(pull PullRequestSpec, mergeRequest *PullRequestMergeRequest) (*PullRequestMergeResult, Response, error) + func (s MockPullRequestsService) CreateComment(pull PullRequestSpec, comment *PullRequestComment) (*PullRequestComment, Response, error) + func (s MockPullRequestsService) DeleteComment(pull PullRequestSpec, commentID int) (Response, error) + func (s MockPullRequestsService) EditComment(pull PullRequestSpec, comment *PullRequestComment) (*PullRequestComment, Response, error) + func (s MockPullRequestsService) Get(pull PullRequestSpec, opt *PullRequestGetOptions) (*PullRequest, Response, error) + func (s MockPullRequestsService) ListByRepo(repo RepoSpec, opt *PullRequestListOptions) ([]*PullRequest, Response, error) + func (s MockPullRequestsService) ListComments(pull PullRequestSpec, opt *PullRequestListCommentsOptions) ([]*PullRequestComment, Response, error) + func (s MockPullRequestsService) Merge(pull PullRequestSpec, mergeRequest *PullRequestMergeRequest) (*PullRequestMergeResult, Response, error) + type MockRepoTreeService struct + Get_ func(entry TreeEntrySpec, opt *RepoTreeGetOptions) (*TreeEntry, Response, error) + Search_ func(RepoRevSpec, *RepoTreeSearchOptions) ([]*vcs.SearchResult, Response, error) + func (s MockRepoTreeService) Get(entry TreeEntrySpec, opt *RepoTreeGetOptions) (*TreeEntry, Response, error) + func (s MockRepoTreeService) Search(rev RepoRevSpec, opt *RepoTreeSearchOptions) ([]*vcs.SearchResult, Response, error) + type MockReposService struct + ComputeStats_ func(repo RepoRevSpec) (Response, error) + CreateStatus_ func(spec RepoRevSpec, st RepoStatus) (*RepoStatus, Response, error) + Create_ func(newRepoSpec NewRepoSpec) (*Repo, Response, error) + GetBuild_ func(repo RepoRevSpec, opt *RepoGetBuildOptions) (*RepoBuildInfo, Response, error) + GetCombinedStatus_ func(spec RepoRevSpec) (*CombinedStatus, Response, error) + GetCommit_ func(rev RepoRevSpec, opt *RepoGetCommitOptions) (*Commit, Response, error) + GetOrCreate_ func(repo RepoSpec, opt *RepoGetOptions) (*Repo, Response, error) + GetReadme_ func(repo RepoRevSpec) (*vcsclient.TreeEntry, Response, error) + GetSettings_ func(repo RepoSpec) (*RepoSettings, Response, error) + GetStats_ func(repo RepoRevSpec) (RepoStats, Response, error) + Get_ func(repo RepoSpec, opt *RepoGetOptions) (*Repo, Response, error) + ListAuthors_ func(repo RepoRevSpec, opt *RepoListAuthorsOptions) ([]*AugmentedRepoAuthor, Response, error) + ListBadges_ func(repo RepoSpec) ([]*Badge, Response, error) + ListBranches_ func(repo RepoSpec, opt *RepoListBranchesOptions) ([]*vcs.Branch, Response, error) + ListByClient_ func(user UserSpec, opt *RepoListByClientOptions) ([]*AugmentedRepoUsageByClient, Response, error) + ListByContributor_ func(user UserSpec, opt *RepoListByContributorOptions) ([]*AugmentedRepoContribution, Response, error) + ListByRefdAuthor_ func(user UserSpec, opt *RepoListByRefdAuthorOptions) ([]*AugmentedRepoUsageOfAuthor, Response, error) + ListClients_ func(repo RepoSpec, opt *RepoListClientsOptions) ([]*AugmentedRepoClient, Response, error) + ListCommits_ func(repo RepoSpec, opt *RepoListCommitsOptions) ([]*Commit, Response, error) + ListCounters_ func(repo RepoSpec) ([]*Counter, Response, error) + ListDependencies_ func(repo RepoRevSpec, opt *RepoListDependenciesOptions) ([]*AugmentedRepoDependency, Response, error) + ListDependents_ func(repo RepoSpec, opt *RepoListDependentsOptions) ([]*AugmentedRepoDependent, Response, error) + ListTags_ func(repo RepoSpec, opt *RepoListTagsOptions) ([]*vcs.Tag, Response, error) + List_ func(opt *RepoListOptions) ([]*Repo, Response, error) + RefreshProfile_ func(repo RepoSpec) (Response, error) + RefreshVCSData_ func(repo RepoSpec) (Response, error) + UpdateSettings_ func(repo RepoSpec, settings RepoSettings) (Response, error) + func (s MockReposService) ComputeStats(repo RepoRevSpec) (Response, error) + func (s MockReposService) Create(newRepoSpec NewRepoSpec) (*Repo, Response, error) + func (s MockReposService) CreateStatus(spec RepoRevSpec, st RepoStatus) (*RepoStatus, Response, error) + func (s MockReposService) Get(repo RepoSpec, opt *RepoGetOptions) (*Repo, Response, error) + func (s MockReposService) GetBuild(repo RepoRevSpec, opt *RepoGetBuildOptions) (*RepoBuildInfo, Response, error) + func (s MockReposService) GetCombinedStatus(spec RepoRevSpec) (*CombinedStatus, Response, error) + func (s MockReposService) GetCommit(rev RepoRevSpec, opt *RepoGetCommitOptions) (*Commit, Response, error) + func (s MockReposService) GetOrCreate(repo RepoSpec, opt *RepoGetOptions) (*Repo, Response, error) + func (s MockReposService) GetReadme(repo RepoRevSpec) (*vcsclient.TreeEntry, Response, error) + func (s MockReposService) GetSettings(repo RepoSpec) (*RepoSettings, Response, error) + func (s MockReposService) GetStats(repo RepoRevSpec) (RepoStats, Response, error) + func (s MockReposService) List(opt *RepoListOptions) ([]*Repo, Response, error) + func (s MockReposService) ListAuthors(repo RepoRevSpec, opt *RepoListAuthorsOptions) ([]*AugmentedRepoAuthor, Response, error) + func (s MockReposService) ListBadges(repo RepoSpec) ([]*Badge, Response, error) + func (s MockReposService) ListBranches(repo RepoSpec, opt *RepoListBranchesOptions) ([]*vcs.Branch, Response, error) + func (s MockReposService) ListByClient(user UserSpec, opt *RepoListByClientOptions) ([]*AugmentedRepoUsageByClient, Response, error) + func (s MockReposService) ListByContributor(user UserSpec, opt *RepoListByContributorOptions) ([]*AugmentedRepoContribution, Response, error) + func (s MockReposService) ListByRefdAuthor(user UserSpec, opt *RepoListByRefdAuthorOptions) ([]*AugmentedRepoUsageOfAuthor, Response, error) + func (s MockReposService) ListClients(repo RepoSpec, opt *RepoListClientsOptions) ([]*AugmentedRepoClient, Response, error) + func (s MockReposService) ListCommits(repo RepoSpec, opt *RepoListCommitsOptions) ([]*Commit, Response, error) + func (s MockReposService) ListCounters(repo RepoSpec) ([]*Counter, Response, error) + func (s MockReposService) ListDependencies(repo RepoRevSpec, opt *RepoListDependenciesOptions) ([]*AugmentedRepoDependency, Response, error) + func (s MockReposService) ListDependents(repo RepoSpec, opt *RepoListDependentsOptions) ([]*AugmentedRepoDependent, Response, error) + func (s MockReposService) ListTags(repo RepoSpec, opt *RepoListTagsOptions) ([]*vcs.Tag, Response, error) + func (s MockReposService) RefreshProfile(repo RepoSpec) (Response, error) + func (s MockReposService) RefreshVCSData(repo RepoSpec) (Response, error) + func (s MockReposService) UpdateSettings(repo RepoSpec, settings RepoSettings) (Response, error) + type MockResponse struct + type MockSearchService struct + Complete_ func(q RawQuery) (*Completions, Response, error) + Search_ func(opt *SearchOptions) (*SearchResults, Response, error) + Suggest_ func(q RawQuery) ([]*Suggestion, Response, error) + func (s MockSearchService) Complete(q RawQuery) (*Completions, Response, error) + func (s MockSearchService) Search(opt *SearchOptions) (*SearchResults, Response, error) + func (s MockSearchService) Suggest(q RawQuery) ([]*Suggestion, Response, error) + type MockUnitsService struct + Get_ func(spec UnitSpec) (*unit.RepoSourceUnit, Response, error) + List_ func(opt *UnitListOptions) ([]*unit.RepoSourceUnit, Response, error) + func (s MockUnitsService) Get(spec UnitSpec) (*unit.RepoSourceUnit, Response, error) + func (s MockUnitsService) List(opt *UnitListOptions) ([]*unit.RepoSourceUnit, Response, error) + type MockUsersService struct + ComputeStats_ func(userSpec UserSpec) (Response, error) + GetOrCreateFromGitHub_ func(user GitHubUserSpec, opt *UserGetOptions) (*User, Response, error) + GetSettings_ func(user UserSpec) (*UserSettings, Response, error) + Get_ func(user UserSpec, opt *UserGetOptions) (*User, Response, error) + ListAuthors_ func(user UserSpec, opt *UsersListAuthorsOptions) ([]*AugmentedPersonUsageByClient, Response, error) + ListClients_ func(user UserSpec, opt *UsersListClientsOptions) ([]*AugmentedPersonUsageOfAuthor, Response, error) + ListEmails_ func(user UserSpec) ([]*EmailAddr, Response, error) + ListOrgs_ func(member UserSpec, opt *UsersListOrgsOptions) ([]*Org, Response, error) + List_ func(opt *UsersListOptions) ([]*User, Response, error) + RefreshProfile_ func(userSpec UserSpec) (Response, error) + UpdateSettings_ func(user UserSpec, settings UserSettings) (Response, error) + func (s MockUsersService) ComputeStats(userSpec UserSpec) (Response, error) + func (s MockUsersService) Get(user UserSpec, opt *UserGetOptions) (*User, Response, error) + func (s MockUsersService) GetOrCreateFromGitHub(user GitHubUserSpec, opt *UserGetOptions) (*User, Response, error) + func (s MockUsersService) GetSettings(user UserSpec) (*UserSettings, Response, error) + func (s MockUsersService) List(opt *UsersListOptions) ([]*User, Response, error) + func (s MockUsersService) ListAuthors(user UserSpec, opt *UsersListAuthorsOptions) ([]*AugmentedPersonUsageByClient, Response, error) + func (s MockUsersService) ListClients(user UserSpec, opt *UsersListClientsOptions) ([]*AugmentedPersonUsageOfAuthor, Response, error) + func (s MockUsersService) ListEmails(user UserSpec) ([]*EmailAddr, Response, error) + func (s MockUsersService) ListOrgs(member UserSpec, opt *UsersListOrgsOptions) ([]*Org, Response, error) + func (s MockUsersService) RefreshProfile(userSpec UserSpec) (Response, error) + func (s MockUsersService) UpdateSettings(user UserSpec, settings UserSettings) (Response, error) + type NewRepoSpec struct + CloneURLStr string + Type string + type Org struct + func (o *Org) OrgSpec() OrgSpec + type OrgListMembersOptions struct + type OrgSettings struct + type OrgSpec struct + Org string + UID int + func ParseOrgSpec(pathComponent string) (OrgSpec, error) + func (s *OrgSpec) PathComponent() string + func (s *OrgSpec) RouteVars() map[string]string + type OrgsService interface + Get func(org OrgSpec) (*Org, Response, error) + GetSettings func(org OrgSpec) (*OrgSettings, Response, error) + ListMembers func(org OrgSpec, opt *OrgListMembersOptions) ([]*User, Response, error) + UpdateSettings func(org OrgSpec, settings OrgSettings) (Response, error) + type PeopleService interface + Get func(person PersonSpec) (*Person, Response, error) + type Person struct + AvatarURL string + FullName string + func (p *Person) AvatarURLOfSize(width int) string + func (p *Person) HasProfile() bool + func (p *Person) ShortName() string + func (p *Person) Transient() bool + type PersonSpec struct + Email string + Login string + UID int + func ParsePersonSpec(pathComponent string) (PersonSpec, error) + func (s *PersonSpec) PathComponent() string + func (s *PersonSpec) RouteVars() map[string]string + type PersonStatType string + func (x *PersonStatType) Scan(v interface{}) error + func (x PersonStatType) Value() (driver.Value, error) + type PersonStats map[PersonStatType]int + type PersonUsageByClient struct + AuthorEmail nnz.String + AuthorUID nnz.Int + RefCount int + type PersonUsageOfAuthor struct + ClientEmail nnz.String + ClientUID nnz.Int + RefCount int + type Plan struct + Defs *DefListOptions + Repos *RepoListOptions + Tree *RepoTreeSearchOptions + TreeRepoRevs []string + Users *UsersListOptions + func (p *Plan) String() string + type PlanSettings struct + PlanID *string + type PullRequest struct + Checklist *Checklist + func (r *PullRequest) Spec() PullRequestSpec + type PullRequestComment struct + Checklist *Checklist + Published bool + RenderedBody string + type PullRequestCommentSpec struct + Comment int + Pull PullRequestSpec + func UnmarshalPullRequestCommentSpec(v map[string]string) (spec PullRequestCommentSpec, err error) + func (c PullRequestCommentSpec) RouteVars() map[string]string + type PullRequestGetOptions struct + Checklist bool + type PullRequestListCommentsOptions struct + type PullRequestListOptions struct + State string + type PullRequestMergeRequest struct + CommitMessage string + type PullRequestMergeResult struct + type PullRequestSpec struct + Number int + Repo RepoSpec + func UnmarshalPullRequestSpec(v map[string]string) (PullRequestSpec, error) + func (s PullRequestSpec) IssueSpec() IssueSpec + func (s PullRequestSpec) RouteVars() map[string]string + type PullRequestsService interface + CreateComment func(pull PullRequestSpec, comment *PullRequestComment) (*PullRequestComment, Response, error) + DeleteComment func(pull PullRequestSpec, commentID int) (Response, error) + EditComment func(pull PullRequestSpec, comment *PullRequestComment) (*PullRequestComment, Response, error) + Get func(pull PullRequestSpec, opt *PullRequestGetOptions) (*PullRequest, Response, error) + ListByRepo func(repo RepoSpec, opt *PullRequestListOptions) ([]*PullRequest, Response, error) + ListComments func(pull PullRequestSpec, opt *PullRequestListCommentsOptions) ([]*PullRequestComment, Response, error) + Merge func(pull PullRequestSpec, mergeRequest *PullRequestMergeRequest) (*PullRequestMergeResult, Response, error) + type QualFormatStrings struct + DepQualified string + LanguageWideQualified string + RepositoryWideQualified string + ScopeQualified string + Unqualified string + type Range struct + End int + Start int + type RawQuery struct + InsertionPoint int + String string + func Join(tokens []Token) RawQuery + type Ref struct + Authorship *AuthorshipInfo + type Refs []*Ref + func (vs Refs) Len() int + func (vs Refs) Less(i, j int) bool + func (vs Refs) Swap(i, j int) + type Repo struct + CreatedAt time.Time + DefaultBranch string + Deprecated bool + Description string + Disabled bool + Fork bool + GitHubID nnz.Int + GitHubStars int + HTTPCloneURL string + HomepageURL nnz.String + Language string + Mirror bool + Name string + OwnerGitHubUserID nnz.Int + OwnerUserID int + Permissions RepoPermissions + Private bool + PushedAt time.Time + RID int + SSHCloneURL nnz.String + Stat RepoStats + URI string + URIAlias nnz.String + UpdatedAt time.Time + VCS string + func (r *Repo) GitHubHTMLURL() string + func (r *Repo) IsGitHubRepo() bool + func (r *Repo) RepoSpec() RepoSpec + type RepoAuthor struct + Email nnz.String + UID nnz.Int + type RepoBuildInfo struct + CommitsBehind int + Exact *Build + LastSuccessful *Build + LastSuccessfulCommit *Commit + type RepoClient struct + Email nnz.String + UID nnz.Int + type RepoContribution struct + RepoURI string + type RepoDependency struct + ToRepo string + type RepoDependent struct + FromRepo string + type RepoGetBuildOptions struct + Exact bool + type RepoGetCommitOptions struct + type RepoGetOptions struct + Stats bool + type RepoListAuthorsOptions struct + type RepoListBranchesOptions struct + type RepoListByClientOptions struct + type RepoListByContributorOptions struct + NoFork bool + type RepoListByRefdAuthorOptions struct + type RepoListClientsOptions struct + type RepoListCommitsOptions struct + Base string + Head string + type RepoListDependenciesOptions struct + type RepoListDependentsOptions struct + type RepoListOptions struct + BuiltOnly bool + Direction string + Name string + NoFork bool + Owner string + Query string + Sort string + State string + Stats bool + Type string + URIs []string + type RepoListTagsOptions struct + type RepoPermissions struct + Admin bool + Read bool + Write bool + type RepoRevSpec struct + CommitID string + Rev string + func UnmarshalRepoRevSpec(routeVars map[string]string) (RepoRevSpec, error) + func (s RepoRevSpec) RevPathComponent() string + func (s RepoRevSpec) RouteVars() map[string]string + type RepoSettings struct + BuildPushes *bool + Enabled *bool + ExternalCommitStatuses *bool + UnsuccessfulExternalCommitStatuses *bool + UseSSHPrivateKey *bool + type RepoSpec struct + RID int + URI string + func ParseRepoSpec(pathComponent string) (RepoSpec, error) + func UnmarshalRepoSpec(routeVars map[string]string) (RepoSpec, error) + func (s RepoSpec) PathComponent() string + func (s RepoSpec) RouteVars() map[string]string + type RepoStatType string + func (x *RepoStatType) Scan(v interface{}) error + func (x RepoStatType) Value() (driver.Value, error) + type RepoStats map[RepoStatType]int + type RepoStatus struct + type RepoToken struct + Repo *Repo + URI string + func (t RepoToken) Spec() RepoSpec + func (t RepoToken) String() string + type RepoTreeGetOptions struct + ContentsAsString bool + Formatted bool + HighlightStrings []string + TokenizedSource bool + type RepoTreeSearchOptions struct + Formatted bool + type RepoTreeSearchResult struct + RepoRev RepoRevSpec + type RepoTreeService interface + Get func(entry TreeEntrySpec, opt *RepoTreeGetOptions) (*TreeEntry, Response, error) + Search func(RepoRevSpec, *RepoTreeSearchOptions) ([]*vcs.SearchResult, Response, error) + type RepoUsageByClient struct + DefRepo string + RefCount int + type RepoUsageOfAuthor struct + RefCount int + Repo string + type Repos []*Repo + func (rs Repos) URIs() (uris []string) + type ReposService interface + ComputeStats func(repo RepoRevSpec) (Response, error) + Create func(newRepoSpec NewRepoSpec) (*Repo, Response, error) + CreateStatus func(spec RepoRevSpec, st RepoStatus) (*RepoStatus, Response, error) + Get func(repo RepoSpec, opt *RepoGetOptions) (*Repo, Response, error) + GetBuild func(repo RepoRevSpec, opt *RepoGetBuildOptions) (*RepoBuildInfo, Response, error) + GetCombinedStatus func(spec RepoRevSpec) (*CombinedStatus, Response, error) + GetCommit func(rev RepoRevSpec, opt *RepoGetCommitOptions) (*Commit, Response, error) + GetOrCreate func(repo RepoSpec, opt *RepoGetOptions) (*Repo, Response, error) + GetReadme func(repo RepoRevSpec) (*vcsclient.TreeEntry, Response, error) + GetSettings func(repo RepoSpec) (*RepoSettings, Response, error) + GetStats func(repo RepoRevSpec) (RepoStats, Response, error) + List func(opt *RepoListOptions) ([]*Repo, Response, error) + ListAuthors func(repo RepoRevSpec, opt *RepoListAuthorsOptions) ([]*AugmentedRepoAuthor, Response, error) + ListBadges func(repo RepoSpec) ([]*Badge, Response, error) + ListBranches func(repo RepoSpec, opt *RepoListBranchesOptions) ([]*vcs.Branch, Response, error) + ListByClient func(user UserSpec, opt *RepoListByClientOptions) ([]*AugmentedRepoUsageByClient, Response, error) + ListByContributor func(user UserSpec, opt *RepoListByContributorOptions) ([]*AugmentedRepoContribution, Response, error) + ListByRefdAuthor func(user UserSpec, opt *RepoListByRefdAuthorOptions) ([]*AugmentedRepoUsageOfAuthor, Response, error) + ListClients func(repo RepoSpec, opt *RepoListClientsOptions) ([]*AugmentedRepoClient, Response, error) + ListCommits func(repo RepoSpec, opt *RepoListCommitsOptions) ([]*Commit, Response, error) + ListCounters func(repo RepoSpec) ([]*Counter, Response, error) + ListDependencies func(repo RepoRevSpec, opt *RepoListDependenciesOptions) ([]*AugmentedRepoDependency, Response, error) + ListDependents func(repo RepoSpec, opt *RepoListDependentsOptions) ([]*AugmentedRepoDependent, Response, error) + ListTags func(repo RepoSpec, opt *RepoListTagsOptions) ([]*vcs.Tag, Response, error) + RefreshProfile func(repo RepoSpec) (Response, error) + RefreshVCSData func(repo RepoSpec) (Response, error) + UpdateSettings func(repo RepoSpec, settings RepoSettings) (Response, error) + type ResolvedQuery struct + Tokens []Token + type Response interface + TotalCount func() int + type RevToken struct + Commit *Commit + Rev string + func (t RevToken) String() string + type SearchOptions struct + Defs bool + People bool + Query string + Repos bool + Tree bool + type SearchResults struct + Canceled bool + Defs []*Def + People []*Person + Plan *Plan + RawQuery RawQuery + Repos []*Repo + ResolveErrors []TokenError + ResolvedTokens Tokens + Tips []TokenError + Tokens Tokens + Tree []*RepoTreeSearchResult + func (r *SearchResults) Empty() bool + type SearchService interface + Complete func(q RawQuery) (*Completions, Response, error) + Search func(opt *SearchOptions) (*SearchResults, Response, error) + Suggest func(q RawQuery) ([]*Suggestion, Response, error) + type SourceCode struct + Lines []*SourceCodeLine + NumRefs int + TooManyRefs bool + type SourceCodeLine struct + EndByte int + StartByte int + Tokens []interface{} + type SourceCodeToken struct + Class string + EndByte int + IsDef bool + Label string + StartByte int + URL []string + type Sourcebox struct + HTML template.HTML + ScriptURL string + StylesheetURL string + type Suggestion struct + Description string + Query Tokens + QueryString string + type TaskSpec struct + TaskID int64 + func (s *TaskSpec) RouteVars() map[string]string + func (t TaskSpec) IDString() string + type TaskUpdate struct + EndedAt *time.Time + Failure *bool + StartedAt *time.Time + Success *bool + type Term string + func (t Term) String() string + func (t Term) UnquotedString() string + type Token interface + String func() string + type TokenError struct + Index int + Message string + Token Token + func (e *TokenError) UnmarshalJSON(b []byte) error + func (e TokenError) Error() string + func (e TokenError) MarshalJSON() ([]byte, error) + type Tokens []Token + func (d *Tokens) UnmarshalJSON(b []byte) error + func (d Tokens) MarshalJSON() ([]byte, error) + func (d Tokens) RawQueryString() string + type TreeEntry struct + ContentsString string + FormatResult *FormatResult + SourceCode *SourceCode + type TreeEntrySpec struct + Path string + RepoRev RepoRevSpec + func (s *TreeEntrySpec) RouteVars() map[string]string + func (s TreeEntrySpec) String() string + type UnitDelta struct + Base *unit.SourceUnit + Head *unit.SourceUnit + func (ud UnitDelta) Added() bool + func (ud UnitDelta) Changed() bool + func (ud UnitDelta) Deleted() bool + type UnitDeltas []*UnitDelta + func (v UnitDeltas) Len() int + func (v UnitDeltas) Less(i, j int) bool + func (v UnitDeltas) Swap(i, j int) + type UnitListOptions struct + NameQuery string + Query string + RepoRevs []string + Unit string + UnitType string + type UnitSpec struct + Unit string + UnitType string + func NewUnitSpecFromUnit(u *unit.RepoSourceUnit) UnitSpec + func UnmarshalUnitSpec(vars map[string]string) (UnitSpec, error) + func (s UnitSpec) RouteVars() map[string]string + type UnitToken struct + Name string + Unit *unit.RepoSourceUnit + UnitType string + func (t UnitToken) String() string + type UnitsService interface + Get func(spec UnitSpec) (*unit.RepoSourceUnit, Response, error) + List func(opt *UnitListOptions) ([]*unit.RepoSourceUnit, Response, error) + type User struct + AvatarURL string + Company string + GitHubID nnz.Int + HomepageURL string + Location string + Login string + Name string + RegisteredAt db_common.NullTime + Stat PersonStats + Type string + UID int + UserProfileDisabled bool + func (u *User) AvatarURLOfSize(width int) string + func (u *User) CanAttributeCodeTo() bool + func (u *User) CanOwnRepositories() bool + func (u *User) GitHubLogin() string + func (u *User) IsOrganization() bool + func (u *User) Person() *Person + func (u *User) Spec() UserSpec + type UserGetOptions struct + Stats bool + type UserSettings struct + RequestedUpgradeAt db_common.NullTime + type UserSpec struct + Login string + UID int + func ParseUserSpec(pathComponent string) (UserSpec, error) + func (s *UserSpec) PathComponent() string + func (s *UserSpec) RouteVars() map[string]string + type UserToken struct + Login string + User *User + func (t UserToken) String() string + type UsersListAuthorsOptions UsersListOptions + type UsersListClientsOptions UsersListOptions + type UsersListOptions struct + Direction string + Query string + Sort string + type UsersListOrgsOptions struct + type UsersService interface + ComputeStats func(userSpec UserSpec) (Response, error) + Get func(user UserSpec, opt *UserGetOptions) (*User, Response, error) + GetOrCreateFromGitHub func(user GitHubUserSpec, opt *UserGetOptions) (*User, Response, error) + GetSettings func(user UserSpec) (*UserSettings, Response, error) + List func(opt *UsersListOptions) ([]*User, Response, error) + ListAuthors func(user UserSpec, opt *UsersListAuthorsOptions) ([]*AugmentedPersonUsageByClient, Response, error) + ListClients func(user UserSpec, opt *UsersListClientsOptions) ([]*AugmentedPersonUsageOfAuthor, Response, error) + ListEmails func(user UserSpec) ([]*EmailAddr, Response, error) + ListOrgs func(member UserSpec, opt *UsersListOrgsOptions) ([]*Org, Response, error) + RefreshProfile func(userSpec UserSpec) (Response, error) + UpdateSettings func(user UserSpec, settings UserSettings) (Response, error)