aop

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

README

使用方式

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

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 上下文

Types

This section is empty.

Jump to

Keyboard shortcuts

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