chain

package
v0.0.0-...-50a54d8 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithValue

func ContextWithValue(ctx *context.Context, val interface{}) *context.Context

Types

type Chain

type Chain struct {
	// contains filtered or unexported fields
}

func New

func New(fns ...func(*context.Context) (bool, error)) *Chain

func (*Chain) Append

func (c *Chain) Append(fns ...func(*context.Context) (bool, error)) *Chain

func (*Chain) Execute

func (c *Chain) Execute(context *context.Context) error

func (*Chain) Merge

func (c *Chain) Merge(chains ...*Chain) *Chain

func (*Chain) Run

func (c *Chain) Run(val interface{}) error

Jump to

Keyboard shortcuts

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