Parameters
Parameter types
basicgroupsprotocol.EntryProvided[T]basicgroupsprotocol.Provider[T]smsprotocol.Verifiercaptchaprotocol.SolverExample
package example
import (
"github.com/futura-platform/protocol"
"github.com/futura-platform/protocol/flowprotocol"
)
type SomeMode string
const (
mode1 SomeMode = "mode1"
mode2 SomeMode = "mode2"
)
type Params struct {
SomeModeParam SomeMode
SomeOtherParam int
SomeListParam []string
SomeOptionalParam *string
SomeDependentParam string `{"Condition": ["SomeModeParam", "mode1"]}`
SomeANDDependentParam string `{"Condition": ["$and", [["SomeModeParam", "mode1"], ["SomeOtherParam", 1]]]}`
SomeORDependentParam string `{"Condition": ["$or", [["SomeModeParam", "mode1"], ["SomeOtherParam", 1]]]}`
}
type Task struct {
*protocol.Task[Params]
}
func ConstructTask(base *protocol.Task[Params]) (protocol.BaseTask, []flowprotocol.TaskStep, error) {
...
}Last updated
