api

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advice

type Advice interface {
}

Advice definition

type Around

type Around interface {
	Before
	Returning
}

Around definition

type Before

type Before interface {
	Before(ctx *context.BeyondContext)
}

Before definition

type Beyond

type Beyond struct{}

Beyond struct used to register the aspects

func New

func New() *Beyond

New initialize the Beyond type

func (*Beyond) Ignore

func (g *Beyond) Ignore(...string) *Beyond

Ignore add path to be ignored by beyond advices

func (*Beyond) WithAround

func (g *Beyond) WithAround(func() Around, string) *Beyond

WithAround registers around aspects

func (*Beyond) WithBefore

func (g *Beyond) WithBefore(func() Before, string) *Beyond

WithBefore registers before aspects

func (*Beyond) WithReturning

func (g *Beyond) WithReturning(func() Returning, string) *Beyond

WithReturning registers returning aspects

type Returning

type Returning interface {
	Returning(ctx *context.BeyondContext)
}

Returning definition

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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