endpoints

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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 WithClusterInfo

func WithClusterInfo(clusterInfo clusterinfo.Interface) Option

func WithCrondSvc

func WithCrondSvc(svc daemon.Interface) Option

func WithDBClient

func WithDBClient(dbClient *dbclient.Client) Option

func WithMysql

func WithMysql(mysql mysqlxorm.Interface) Option

func WithPipelineSvc

func WithPipelineSvc(svc *pipelinesvc.PipelineSvc) Option

func WithQueryStringDecoder

func WithQueryStringDecoder(decoder *schema.Decoder) Option

Jump to

Keyboard shortcuts

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