rule

package
v0.0.0-...-32c423f Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

README

实现一个规则引擎

- 

进度

- %0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct{}

func NewApplication

func NewApplication() *Application

func (*Application) Exec

func (app *Application) Exec(ctx context.Context, in base.Input) (out base.Output, err error)

type Input

type Input struct {
	SourceCode string
}

func (*Input) Deserialization

func (in *Input) Deserialization(source []byte) (err error)

func (*Input) From

func (in *Input) From(source base.IPayload) (err error)

func (*Input) Serialization

func (in *Input) Serialization() (target []byte, err error)

func (*Input) To

func (in *Input) To(target base.IPayload) (err error)

type Output

type Output struct {
	Data string
}

func (*Output) Deserialization

func (out *Output) Deserialization(source []byte) (err error)

func (*Output) From

func (out *Output) From(source base.IPayload) (err error)

func (*Output) Serialization

func (out *Output) Serialization() (target []byte, err error)

func (*Output) To

func (out *Output) To(target base.IPayload) (err error)

Jump to

Keyboard shortcuts

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