solver

package
v0.0.0-...-23ccc11 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MathSolver

type MathSolver interface {
	Resolve(ctx context.Context, expression string) (float64, error)
}

type Processor

type Processor struct {
	Solver MathSolver
}

func (Processor) ProcessExpression

func (p Processor) ProcessExpression(ctx context.Context, r io.Reader) (float64, error)

type RemoteSolver

type RemoteSolver struct {
	MathServerURL string
	Client        *http.Client
}

func (RemoteSolver) Resolve

func (rs RemoteSolver) Resolve(ctx context.Context, expression string) (float64, error)

Jump to

Keyboard shortcuts

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