tasks

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectCommits

func CollectCommits(projectId int, ctx context.Context) error

func CollectProject

func CollectProject(projectId int, ctx context.Context) error

func RandStringRunes

func RandStringRunes(n int) string

func SetDevEqOnCommits

func SetDevEqOnCommits(ctx context.Context) error

NOTE: This only works on Commits in the Domain layer. You need to run Github or Gitlab collection and Domain layer enrichemnt first.

Types

type AEApiClient

type AEApiClient struct {
	core.ApiClient
}

func CreateApiClient

func CreateApiClient(ctx context.Context) *AEApiClient

func (*AEApiClient) FetchWithPagination

func (aeApiClient *AEApiClient) FetchWithPagination(path string, pageSize int, handler AEPaginationHandler) error

fetch paginated without ANTS worker pool

type AEApiCommit

type AEApiCommit struct {
	HexSha      string `json:"hexsha"`
	AnalysisId  string `json:"analysis_id"`
	AuthorEmail string `json:"author_email"`
	DevEq       int    `json:"dev_eq"`
}

type AEPaginationHandler

type AEPaginationHandler func(res *http.Response) error

type ApiCommitResponse

type ApiCommitResponse []AEApiCommit

type ApiProjectResponse

type ApiProjectResponse struct {
	Id           int        `json:"id"`
	GitUrl       string     `json:"git_url"`
	Priority     int        `json:"priority"`
	AECreateTime *time.Time `json:"create_time"`
	AEUpdateTime *time.Time `json:"update_time"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL