Documentation ¶
Overview ¶
Package endpoints 定义所有的 route handle.
Index ¶
- type Endpoints
- type Option
- func WithActionAgentSvc(svc *actionagentsvc.ActionAgentSvc) Option
- func WithAppSvc(svc *appsvc.AppSvc) Option
- func WithBuildArtifactSvc(svc *buildartifactsvc.BuildArtifactSvc) Option
- func WithBuildCacheSvc(svc *buildcachesvc.BuildCacheSvc) Option
- func WithCMSvc(svc *cmsvc.CMSvc) Option
- func WithCrondSvc(svc *crondsvc.CrondSvc) Option
- func WithDBClient(dbClient *dbclient.Client) Option
- func WithExtMarketSvc(svc *extmarketsvc.ExtMarketSvc) Option
- func WithPermissionSvc(svc *permissionsvc.PermissionSvc) Option
- func WithPipelineCronSvc(svc *pipelinecronsvc.PipelineCronSvc) Option
- func WithPipelineSvc(svc *pipelinesvc.PipelineSvc) Option
- func WithQueryStringDecoder(decoder *schema.Decoder) Option
- func WithQueueManage(qm *queuemanage.QueueManage) Option
- func WithReconciler(r *reconciler.Reconciler) Option
- func WithReportSvc(svc *reportsvc.ReportSvc) Option
- func WithSnippetSvc(svc *snippetsvc.SnippetSvc) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoints ¶
type Endpoints struct {
// contains filtered or unexported fields
}
Endpoints 定义 endpoint 方法
func (*Endpoints) Routes ¶
func (e *Endpoints) Routes() []httpserver.Endpoint
Routes 返回 endpoints 的所有 endpoint 方法,也就是 route.
type Option ¶
type Option func(*Endpoints)
func WithActionAgentSvc ¶
func WithActionAgentSvc(svc *actionagentsvc.ActionAgentSvc) Option
func WithAppSvc ¶
func WithBuildArtifactSvc ¶
func WithBuildArtifactSvc(svc *buildartifactsvc.BuildArtifactSvc) Option
func WithBuildCacheSvc ¶
func WithBuildCacheSvc(svc *buildcachesvc.BuildCacheSvc) Option
func WithCrondSvc ¶
func WithDBClient ¶
func WithExtMarketSvc ¶
func WithExtMarketSvc(svc *extmarketsvc.ExtMarketSvc) Option
func WithPermissionSvc ¶
func WithPermissionSvc(svc *permissionsvc.PermissionSvc) Option
func WithPipelineCronSvc ¶
func WithPipelineCronSvc(svc *pipelinecronsvc.PipelineCronSvc) Option
func WithPipelineSvc ¶
func WithPipelineSvc(svc *pipelinesvc.PipelineSvc) Option
func WithQueryStringDecoder ¶
func WithQueueManage ¶
func WithQueueManage(qm *queuemanage.QueueManage) Option
func WithReconciler ¶
func WithReconciler(r *reconciler.Reconciler) Option
func WithReportSvc ¶
func WithSnippetSvc ¶
func WithSnippetSvc(svc *snippetsvc.SnippetSvc) Option
Click to show internal directories.
Click to hide internal directories.