Documentation
¶
Overview ¶
Code generated by genservices. DO NOT EDIT.
Code generated by genservices. DO NOT EDIT.
Index ¶
- func RegisterHandlers(svc Service, r *mux.Router, regCtx *endpointutil.HandlerRegContext)
- type AnalyzedRepo
- type BasicService
- func (s BasicService) GetAnalysisStateByAnalysisGUID(rc *request.InternalContext, req *AnalyzedRepo) (*State, error)
- func (s BasicService) GetAnalysisStateByPRNumber(rc *request.AnonymousContext, req *RepoPullRequest) (*State, error)
- func (s BasicService) UpdateAnalysisStateByAnalysisGUID(rc *request.InternalContext, req *AnalyzedRepo, state *State) error
- type GetAnalysisStateByAnalysisGUIDRequest
- type GetAnalysisStateByAnalysisGUIDResponse
- type GetAnalysisStateByPRNumberRequest
- type GetAnalysisStateByPRNumberResponse
- type RepoPullRequest
- type SamePullStateLink
- type Service
- type State
- type UpdateAnalysisStateByAnalysisGUIDRequest
- type UpdateAnalysisStateByAnalysisGUIDResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlers ¶
func RegisterHandlers(svc Service, r *mux.Router, regCtx *endpointutil.HandlerRegContext)
Types ¶
type AnalyzedRepo ¶
type BasicService ¶
func (BasicService) GetAnalysisStateByAnalysisGUID ¶
func (s BasicService) GetAnalysisStateByAnalysisGUID(rc *request.InternalContext, req *AnalyzedRepo) (*State, error)
func (BasicService) GetAnalysisStateByPRNumber ¶
func (s BasicService) GetAnalysisStateByPRNumber(rc *request.AnonymousContext, req *RepoPullRequest) (*State, error)
func (BasicService) UpdateAnalysisStateByAnalysisGUID ¶
func (s BasicService) UpdateAnalysisStateByAnalysisGUID(rc *request.InternalContext, req *AnalyzedRepo, state *State) error
type GetAnalysisStateByAnalysisGUIDRequest ¶
type GetAnalysisStateByAnalysisGUIDRequest struct {
Req *AnalyzedRepo
}
type GetAnalysisStateByAnalysisGUIDResponse ¶
type GetAnalysisStateByAnalysisGUIDResponse struct { *State // contains filtered or unexported fields }
type GetAnalysisStateByPRNumberRequest ¶
type GetAnalysisStateByPRNumberRequest struct {
Req *RepoPullRequest
}
type GetAnalysisStateByPRNumberResponse ¶
type GetAnalysisStateByPRNumberResponse struct { *State // contains filtered or unexported fields }
type RepoPullRequest ¶
type RepoPullRequest struct { request.Repo PullRequestNumber int `request:",urlPart,"` CommitSHA string `request:"commit_sha,urlParam,optional"` }
func (RepoPullRequest) FillLogContext ¶
func (r RepoPullRequest) FillLogContext(lctx logutil.Context)
type SamePullStateLink ¶
type Service ¶
type Service interface { //url:/v1/repos/{provider}/{owner}/{name}/analyzes/{analysisguid}/state GetAnalysisStateByAnalysisGUID(rc *request.InternalContext, req *AnalyzedRepo) (*State, error) //url:/v1/repos/{provider}/{owner}/{name}/pulls/{pullrequestnumber} GetAnalysisStateByPRNumber(rc *request.AnonymousContext, req *RepoPullRequest) (*State, error) //url:/v1/repos/{provider}/{owner}/{name}/analyzes/{analysisguid}/state method:PUT UpdateAnalysisStateByAnalysisGUID(rc *request.InternalContext, req *AnalyzedRepo, state *State) error }
type State ¶
type State struct { gorm.Model Status string ReportedIssuesCount int ResultJSON json.RawMessage CommitSHA string GithubPullRequestNumber int GithubRepoName string PreviousAnalyzes []SamePullStateLink `json:",omitempty"` }
func (State) FillLogContext ¶
type UpdateAnalysisStateByAnalysisGUIDRequest ¶
type UpdateAnalysisStateByAnalysisGUIDRequest struct { Req *AnalyzedRepo State *State }
type UpdateAnalysisStateByAnalysisGUIDResponse ¶
type UpdateAnalysisStateByAnalysisGUIDResponse struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.