aop

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: 13 Imported by: 0

README

使用方式

  • 明确需要调节的类型 (tune type),目前支持 pipeline / task
  • 进入对应插件目录
  • 在 plugins 目录下新建目录,开发你的插件,参考 echo 插件
  • 在 conf/pipeline/pipeline.yaml 中编排你的插件

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(ctx *aoptypes.TuneContext) error

Handle 外部调用统一入口

func Initialize

func Initialize(bdl *bundle.Bundle, dbClient *dbclient.Client, report *reportsvc.ReportSvc)

func NewContextForPipeline

func NewContextForPipeline(p spec.Pipeline, trigger aoptypes.TuneTrigger, customKVs ...map[interface{}]interface{}) *aoptypes.TuneContext

NewContextForPipeline 用于快速构造流水线 AOP 上下文

func NewContextForTask

func NewContextForTask(task spec.PipelineTask, p spec.Pipeline, trigger aoptypes.TuneTrigger, customKVs ...map[interface{}]interface{}) *aoptypes.TuneContext

NewContextForTask 用于快速构任务 AOP 上下文

func NewProviderNameByPluginName added in v1.3.0

func NewProviderNameByPluginName(point TunePoint) string

func RegisterTunePoint added in v1.3.0

func RegisterTunePoint(tunePoint TunePoint) error

RegisterTunePoint register tunePoint

Types

type TuneConfigs added in v1.3.0

type TuneConfigs map[aoptypes.TuneType]map[aoptypes.TuneTrigger][]string

TuneConfigs Save the TunePointName of all types of call chains under different trigger

Jump to

Keyboard shortcuts

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