mfs

package
v1.0.8-pro Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	TaskId string // now task id
	// contains filtered or unexported fields
}

Context

func (*Context) Back

func (c *Context) Back(a ...int)

func (*Context) Close

func (c *Context) Close(err error) error

func (*Context) Get

func (c *Context) Get(key string) any

func (*Context) Next

func (c *Context) Next()

func (*Context) Set

func (c *Context) Set(key string, val any)

func (*Context) Stop

func (c *Context) Stop()

type Factory

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

func GenerateFactory

func GenerateFactory(name string) *Factory

GenerateFactory

func (*Factory) AppendMethods

func (f *Factory) AppendMethods(methods ...Method)

func (*Factory) Do

func (f *Factory) Do()

func (*Factory) EndMessage

func (f *Factory) EndMessage() (string, error)

EndMessage

func (*Factory) Next

func (f *Factory) Next() bool

Next

type Method

type Method interface {
	TaskId() string  // return this method name
	Do(ctx *Context) // runner func
}

Method

type MethodChain

type MethodChain []Method

MethodChain

func (MethodChain) Length

func (m MethodChain) Length() int

Jump to

Keyboard shortcuts

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