aop

package
v0.0.0-...-0c91f02 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAspect

func RegisterAspect(aspect AspectInterface)

func RegisterPoint

func RegisterPoint(pointType reflect.Type)

Types

type AspectInterface

type AspectInterface interface {
	Before(point *JoinPoint, methodLocation string) bool
	After(point *JoinPoint, methodLocation string)
	Finally(point *JoinPoint, methodLocation string)
	IsMatch(methodLocation string) bool
}

type JoinPoint

type JoinPoint struct {
	Receiver interface{}
	Method   reflect.Method
	Params   []reflect.Value
	Result   []reflect.Value
}

func NewJoinPoint

func NewJoinPoint(receiver interface{}, params []reflect.Value, method reflect.Method) *JoinPoint

Jump to

Keyboard shortcuts

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