Documentation ¶
Overview ¶
Package endpoints 定义所有的 route handle.
Index ¶
- type Endpoints
- type Option
- func WithClusterInfo(clusterInfo clusterinfo.Interface) Option
- func WithCrondSvc(svc daemon.Interface) Option
- func WithDBClient(dbClient *dbclient.Client) Option
- func WithMysql(mysql mysqlxorm.Interface) Option
- func WithPipelineSvc(svc *pipelinesvc.PipelineSvc) Option
- func WithQueryStringDecoder(decoder *schema.Decoder) 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 WithClusterInfo ¶
func WithClusterInfo(clusterInfo clusterinfo.Interface) Option
func WithCrondSvc ¶
func WithDBClient ¶
func WithPipelineSvc ¶
func WithPipelineSvc(svc *pipelinesvc.PipelineSvc) Option
func WithQueryStringDecoder ¶
Click to show internal directories.
Click to hide internal directories.