endpoints

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 35 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package endpoints 定义所有的 route handle.

Index

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 New

func New(options ...Option) *Endpoints

New 创建 Endpoints 对象.

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 WithAppSvc(svc *appsvc.AppSvc) Option

func WithBuildArtifactSvc

func WithBuildArtifactSvc(svc *buildartifactsvc.BuildArtifactSvc) Option

func WithBuildCacheSvc

func WithBuildCacheSvc(svc *buildcachesvc.BuildCacheSvc) Option

func WithCrondSvc

func WithCrondSvc(svc *crondsvc.CrondSvc) Option

func WithDBClient

func WithDBClient(dbClient *dbclient.Client) Option

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 WithQueryStringDecoder(decoder *schema.Decoder) Option

func WithQueueManage

func WithQueueManage(qm *queuemanage.QueueManage) Option

func WithReconciler

func WithReconciler(r *reconciler.Reconciler) Option

func WithReportSvc

func WithReportSvc(svc *reportsvc.ReportSvc) Option

Jump to

Keyboard shortcuts

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