aop

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aop

type Aop struct {
	Err error
	Ctx context.Context
	// contains filtered or unexported fields
}

func (*Aop) After

func (b *Aop) After()

func (*Aop) Before

func (b *Aop) Before()

func (*Aop) Break

func (a *Aop) Break(err error)

func (*Aop) Get

func (a *Aop) Get(key any) any

func (*Aop) GetErr

func (a *Aop) GetErr() (err error)

func (*Aop) Handler

func (b *Aop) Handler()

func (*Aop) Set

func (a *Aop) Set(key, vale any)

func (*Aop) SetErr

func (a *Aop) SetErr(err error)

type BaseAop

type BaseAop struct {
	I IAop
	// contains filtered or unexported fields
}

func New

func New(Ctx context.Context, I IAop) *BaseAop

func (*BaseAop) Run

func (a *BaseAop) Run() (err error)

func (*BaseAop) SetAfter

func (a *BaseAop) SetAfter(I ...IAop) *BaseAop

func (*BaseAop) SetBefore

func (a *BaseAop) SetBefore(I ...IAop) *BaseAop

type IAop

type IAop interface {
	Before()
	Handler()
	After()

	SetErr(err error)
	GetErr() (err error)

	Break(err error)
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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