Documentation
¶
Overview ¶
Package net provides gini/inter interface variants adapted to network communications.
Package net mirrors gini/inter but adds error conditions to methods for the case where the implementer needs to check for network/os errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoSolvable ¶
type GoSolvable interface {
GoSolve() Solve
}
type S ¶
Interface NetS composes solving, asynchronous interface, model extraction, assumptions, and scoping with error returns for net operations.
type Solve ¶
type Solve interface {
Test() (int, bool, error)
Try(d time.Duration) (int, error)
Stop() (int, error)
}
Interface NetSolve represents an asynchronous connection to a call to solve over a network, such as crisp.(*Client).Solve(). It is analagous to gini.Solve, but adds error returns for underlying network/operating system errors.
NetSolve may be constructed by a call to crisp.(*Client).GoSolve().
This interface is NOT safe for usage in multiple goroutines and the following caveats must be respected:
- Once any method of NetSolve returns a result from the underlying solver NetSolve must no longer be used
- Once any method of a NetSolve returns a non-nil error, it must no longer be used.