aop

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 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 report.Interface)

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

func NewProviderNameByPluginName(point TunePoint) string

func RegisterTunePoint

func RegisterTunePoint(tunePoint TunePoint) error

RegisterTunePoint register tunePoint

Types

type TuneConfigs

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