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 BasicService
- func (s BasicService) Create(rc *request.AuthorizedContext, reqRepo *request.BodyRepo) (*returntypes.WrappedRepoInfo, error)
- func (s BasicService) Delete(rc *request.AuthorizedContext, reqRepo *request.RepoID) (*returntypes.WrappedRepoInfo, error)
- func (s BasicService) Get(rc *request.AuthorizedContext, reqRepo *request.RepoID) (*returntypes.WrappedRepoInfo, error)
- func (s BasicService) List(rc *request.AuthorizedContext, req *listRequest) (*returntypes.RepoListResponse, error)
- type CreateRequest
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type GetRequest
- type GetResponse
- type ListRequest
- type ListResponse
- type Service
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 BasicService ¶
type BasicService struct { CreateQueue *repos.CreatorProducer DeleteQueue *repos.DeleterProducer ProviderFactory providers.Factory Cache cache.Cache Cfg config.Config Ec *experiments.Checker OrgPolicy *policy.Organization ActiveSubPolicy *policy.ActiveSubscription }
func (BasicService) Create ¶
func (s BasicService) Create(rc *request.AuthorizedContext, reqRepo *request.BodyRepo) (*returntypes.WrappedRepoInfo, error)
func (BasicService) Delete ¶
func (s BasicService) Delete(rc *request.AuthorizedContext, reqRepo *request.RepoID) (*returntypes.WrappedRepoInfo, error)
func (BasicService) Get ¶
func (s BasicService) Get(rc *request.AuthorizedContext, reqRepo *request.RepoID) (*returntypes.WrappedRepoInfo, error)
func (BasicService) List ¶
func (s BasicService) List(rc *request.AuthorizedContext, req *listRequest) (*returntypes.RepoListResponse, error)
type CreateRequest ¶
type CreateResponse ¶
type CreateResponse struct { *returntypes.WrappedRepoInfo // contains filtered or unexported fields }
type DeleteRequest ¶
type DeleteResponse ¶
type DeleteResponse struct { *returntypes.WrappedRepoInfo // contains filtered or unexported fields }
type GetRequest ¶
type GetResponse ¶
type GetResponse struct { *returntypes.WrappedRepoInfo // contains filtered or unexported fields }
type ListRequest ¶
type ListRequest struct {
Req *listRequest
}
type ListResponse ¶
type ListResponse struct { *returntypes.RepoListResponse // contains filtered or unexported fields }
type Service ¶
type Service interface { //url:/v1/repos method:POST Create(rc *request.AuthorizedContext, reqRepo *request.BodyRepo) (*returntypes.WrappedRepoInfo, error) //url:/v1/repos/{repoid} Get(rc *request.AuthorizedContext, reqRepo *request.RepoID) (*returntypes.WrappedRepoInfo, error) //url:/v1/repos/{repoid} method:DELETE Delete(rc *request.AuthorizedContext, reqRepo *request.RepoID) (*returntypes.WrappedRepoInfo, error) //url:/v1/repos List(rc *request.AuthorizedContext, req *listRequest) (*returntypes.RepoListResponse, error) }
Click to show internal directories.
Click to hide internal directories.