endpoints

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 31 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) AddBlacklist

func (e *Endpoints) AddBlacklist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

AddBlacklist 设置安全参数

func (*Endpoints) AddErase

func (e *Endpoints) AddErase(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

AddErase 设置数据擦除用户

func (*Endpoints) ApplyPipelineTemplate

func (e *Endpoints) ApplyPipelineTemplate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CheckLaststVersion

func (e *Endpoints) CheckLaststVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CheckLaststVersion 获取移动应用最新的版本信息

func (*Endpoints) CreateExtension

func (e *Endpoints) CreateExtension(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateExtension 创建扩展

func (*Endpoints) CreateExtensionVersion

func (e *Endpoints) CreateExtensionVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateExtensionVersion 创建扩展版本

func (*Endpoints) CreateOffLineVersion

func (e *Endpoints) CreateOffLineVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateOffLineVersion 创建离线包版本

func (*Endpoints) CreatePipelineTemplate

func (e *Endpoints) CreatePipelineTemplate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CreatePublishItem

func (e *Endpoints) CreatePublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreatePublishItem 创建发布内容

func (*Endpoints) CreatePublishItemVersion

func (e *Endpoints) CreatePublishItemVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreatePublishItemVersion 创建发布版本

func (*Endpoints) CreateRelease

func (e *Endpoints) CreateRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateRelease POST /api/releases release创建处理

func (*Endpoints) CumulativeUsers

func (e *Endpoints) CumulativeUsers(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CumulativeUsers

func (*Endpoints) DeletePublishItem

func (e *Endpoints) DeletePublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeletePublishItem 删除发布内容

func (*Endpoints) DeleteRelease

func (e *Endpoints) DeleteRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteRelease DELETE /api/releases/<releaseId> 删除release处理

func (*Endpoints) GetCrashRate

func (e *Endpoints) GetCrashRate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetCrashRate 崩溃率

func (*Endpoints) GetDiceYAML

func (e *Endpoints) GetDiceYAML(w http.ResponseWriter, r *http.Request)

GetDiceYAML GET /api/releases/<releaseId>/actions/get-dice 获取dice.yml内容处理

func (*Endpoints) GetErrAffectUserRate

func (e *Endpoints) GetErrAffectUserRate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetErrAffectUserRate

func (*Endpoints) GetErrList

func (e *Endpoints) GetErrList(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetErrList 获取错误报告,错误趋势

func (*Endpoints) GetErrTrend

func (e *Endpoints) GetErrTrend(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetErrTrend 获取错误报告,错误趋势

func (*Endpoints) GetExtensionVersion

func (e *Endpoints) GetExtensionVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetExtensionVersion 获取指定版本扩展

func (*Endpoints) GetH5PackageName

func (e *Endpoints) GetH5PackageName(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetH5PackageName 获取H5的包名

func (*Endpoints) GetIosPlist

func (e *Endpoints) GetIosPlist(ctx context.Context, writer http.ResponseWriter, r *http.Request, vars map[string]string) error

GetPlist GET /api/releases/<releaseId>/actions/get-plist 获取ios发布类型中的下载plist配置

func (*Endpoints) GetLatestReleases

func (e *Endpoints) GetLatestReleases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetLatestReleases 获取指定项目指定版本情况下各应用最新release 内部使用

func (*Endpoints) GetPipelineTemplateVersion

func (e *Endpoints) GetPipelineTemplateVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetPublicVersion

func (e *Endpoints) GetPublicVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetPublicVersion 获取移动应用线上的版本

func (*Endpoints) GetPublishItem

func (e *Endpoints) GetPublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetPublishItem 获取发布内容详情

func (*Endpoints) GetPublishItemBlacklist

func (e *Endpoints) GetPublishItemBlacklist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetPublishItemBlacklist 获取PublishItem黑名单

func (*Endpoints) GetPublishItemCertificationlist

func (e *Endpoints) GetPublishItemCertificationlist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetPublishItemCertificationlist 获取publishItem认证列表

func (*Endpoints) GetPublishItemDistribution

func (e *Endpoints) GetPublishItemDistribution(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetPublishItemDistribution 获取发布内容分发信息

func (*Endpoints) GetPublishItemEraselist

func (e *Endpoints) GetPublishItemEraselist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetPublishItemEraselist 获取publishItem擦除数据名单

func (*Endpoints) GetRelease

func (e *Endpoints) GetRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetRelease GET /api/releases/<releaseId> release详情处理

func (*Endpoints) GetSecurityStatus

func (e *Endpoints) GetSecurityStatus(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetSecurityStatus 获取客户安全信息状态

func (*Endpoints) GetStatisticsChannelInfo

func (e *Endpoints) GetStatisticsChannelInfo(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetStatisticsChannelInfo 获取渠道详情,明细数据

func (*Endpoints) GetStatisticsTrend

func (e *Endpoints) GetStatisticsTrend(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetStatisticsTrend 获取统计大盘,整体趋势

func (*Endpoints) GetStatisticsVersionInfo

func (e *Endpoints) GetStatisticsVersionInfo(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetStatisticsVersionInfo 获取版本详情,明细数据

func (*Endpoints) Info

func (e *Endpoints) Info(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

Info 用于健康检查

func (*Endpoints) InjectDiceInitContainer

func (e *Endpoints) InjectDiceInitContainer(diceStr string) (string, error)

func (*Endpoints) ListMonitorKeys

func (e *Endpoints) ListMonitorKeys(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListMonitorKeys 获取 publishItem 的监控 ak ai

func (*Endpoints) ListRelease

func (e *Endpoints) ListRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListRelease GET /api/releases release列表处理

func (*Endpoints) ListReleaseName

func (e *Endpoints) ListReleaseName(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListReleaseName 获取给定应用下的releaseName列表

func (*Endpoints) MetricsRouting

func (e *Endpoints) MetricsRouting(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

MetricsRouting 获取渠道详情,明细数据

func (*Endpoints) QueryExtensionVersions

func (e *Endpoints) QueryExtensionVersions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

QueryExtensionVersions 查询扩展版本列表

func (*Endpoints) QueryExtensions

func (e *Endpoints) QueryExtensions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

QueryExtensions 获取扩展列表

func (*Endpoints) QueryExtensionsMenu

func (e *Endpoints) QueryExtensionsMenu(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

QueryExtensions 获取扩展列表

func (*Endpoints) QueryMyPublishItem

func (e *Endpoints) QueryMyPublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

QueryMyPublishItem 查询我的发布

func (*Endpoints) QueryPipelineTemplateVersions

func (e *Endpoints) QueryPipelineTemplateVersions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) QueryPipelineTemplates

func (e *Endpoints) QueryPipelineTemplates(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) QueryPublishItem

func (e *Endpoints) QueryPublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

QueryPublishItem 查询发布内容

func (*Endpoints) QueryPublishItemVersion

func (e *Endpoints) QueryPublishItemVersion(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

QueryPublishItemVersion 查询发布版本

func (*Endpoints) Release

func (e *Endpoints) Release() *release.Release

Release 获取 release service

func (*Endpoints) ReleaseGC

func (e *Endpoints) ReleaseGC(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ReleaseGC 通过GET /gc API触发releaese gc时处理逻辑

func (*Endpoints) RemoveBlacklist

func (e *Endpoints) RemoveBlacklist(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

RemoveBlacklist 删除黑名单

func (*Endpoints) RenderPipelineTemplate

func (e *Endpoints) RenderPipelineTemplate(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) RenderPipelineTemplateBySpec

func (e *Endpoints) RenderPipelineTemplateBySpec(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) Routes

func (e *Endpoints) Routes() []httpserver.Endpoint

Routes 返回 endpoints 的所有 endpoint 方法,也就是 route.

func (*Endpoints) SearchExtensions

func (e *Endpoints) SearchExtensions(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

SearchExtensions 批量查询扩展列表

func (*Endpoints) SetPublishItemVersionStatus

func (e *Endpoints) SetPublishItemVersionStatus(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

SetPublishItemVersionStatus 设置版本状态

func (*Endpoints) UpdateErase

func (e *Endpoints) UpdateErase(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateErase 数据擦除状态更新

func (*Endpoints) UpdatePublishItem

func (e *Endpoints) UpdatePublishItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdatePublishItem 更新PublishItem

func (*Endpoints) UpdatePublishItemVersionState

func (e *Endpoints) UpdatePublishItemVersionState(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdatePublishItemVersionState 更新移动应用发布状态

func (*Endpoints) UpdateRelease

func (e *Endpoints) UpdateRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateRelease PUT /api/releases/<releaseId> release更新处理

func (*Endpoints) UpdateReleaseReference

func (e *Endpoints) UpdateReleaseReference(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateReleaseReference PUT /api/releases/<releaseId> release更新引用处理

type MenuItem struct {
	Name string `json:"name"`
}

type Option

type Option func(*Endpoints)

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithDBClient

func WithDBClient(db *dbclient.DBClient) Option

WithDBClient 配置 db

func WithExtension

func WithExtension(extension *extension.Extension) Option

WithExtension 配置 extension service

func WithPipelineTemplate

func WithPipelineTemplate(pipelineTemplate *template.PipelineTemplate) Option

func WithPublishItem

func WithPublishItem(publishItem *publish_item.PublishItem) Option

WithExtension 配置 extension service

func WithQueryStringDecoder

func WithQueryStringDecoder(decoder *schema.Decoder) Option

WithQueryStringDecoder 配置 queryStringDecoder

func WithRelease

func WithRelease(release *release.Release) Option

WithRelease 配置 release service

Jump to

Keyboard shortcuts

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