Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterResulter ¶
func RegisterResulter(r Resulter, f ResulterFunc)
RegisterResulter registers a function to be called lated via Call. It is usually called from the init function of a package that contains a Resulter.
func RegisterTasker ¶
func RegisterTasker(t Tasker, f TaskerFunc)
RegisterTasker registers a function to be called lated via Call. It is usually called from the init function of a package that contains a Tasker.
Types ¶
type Resulter ¶
type Resulter int
Resulter is a reference to a unique implementation of a ResulterFunc.
type ResulterFunc ¶
type ResulterFunc func(ctx context.Context, result model.KeyedResult, challenge model.Challenge) error
ResulterFunc is a function that will compute skills for the referenced Result. It will call Taskers of encapsulated tasks on demand.
Click to show internal directories.
Click to hide internal directories.