aspect

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aspect

type Aspect struct {
	// JoinPoint determines whether the injection should be performed on a given node or not.
	JoinPoint join.Point
	// Advice is the set of actions to use for performing the actual injection.
	Advice []advice.Advice
	// TracerInternal determines whether the aspect can be woven into the tracer's internal code.
	TracerInternal bool
}

Aspect binds advice.Advice to a join.Point, effectively defining a complete code injection.

func (*Aspect) AddedImports

func (a *Aspect) AddedImports() (imports []string)

func (*Aspect) AsCode

func (a *Aspect) AsCode() (jp jen.Code, adv jen.Code)

func (*Aspect) UnmarshalYAML

func (a *Aspect) UnmarshalYAML(node *yaml.Node) error

Directories

Path Synopsis
Package advice provides implementations of the injector.Action interface for common AST changes.
Package advice provides implementations of the injector.Action interface for common AST changes.
Package join provides implementations of the InjectionPoint interface for common injection points.
Package join provides implementations of the InjectionPoint interface for common injection points.

Jump to

Keyboard shortcuts

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