Documentation
¶
Index ¶
- Variables
- func BfsOption(step, fanOut uint32, red client.Reduction, obj client.Objective) client.IlluminateOption
- func CommunityOption(maxSize uint32, red client.Reduction, obj client.Objective, ...) client.IlluminateOption
- func PagerankOption(topN uint32, restartProb, epsilon float32) client.IlluminateOption
- type CLIService
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidObjective = errors.New("invalid objective") ErrInvalidVerb = errors.New("invalid verb") ErrNotImplemented = errors.New("not implemented") ErrGetVertex = errors.New("get vertex error") ErrGetEdge = errors.New("get edge error") ErrPutVertex = errors.New("put vertex error") ErrPutEdge = errors.New("put edge error") ErrDeleteVertex = errors.New("delete vertex error") ErrDeleteEdge = errors.New("delete edge error") ErrAddEdge = errors.New("add edge error") ErrAddDecayingEdge = errors.New("add decaying-edge error") ErrScan = errors.New("scan error") ErrCount = errors.New("count error") ErrDeletePrefix = errors.New("delete-prefix error") ErrKeys = errors.New("keys error") ErrIlluminate = errors.New("illuminate error") ErrConnection = errors.New("connection error") )
Functions ¶
func BfsOption ¶ added in v0.32.0
func BfsOption(step, fanOut uint32, red client.Reduction, obj client.Objective) client.IlluminateOption
BfsOption / PagerankOption / CommunityOption build the typed per-family SDK option from CLI-resolved knobs (#846 oneof, #975 verb split). Each family verb owns exactly the knobs its wire arm understands: bfs carries step/fan_out plus the tree reduction, pagerank carries top_n plus the α/ε push knobs (no reduction — its relevance star is already a tree), and community carries max_size plus α/ε and an optional tree reduction (#845). Shared by the REPL dispatcher and the cobra family subcommands so both surfaces translate identically.
func CommunityOption ¶ added in v0.32.0
func PagerankOption ¶ added in v0.32.0
func PagerankOption(topN uint32, restartProb, epsilon float32) client.IlluminateOption
Types ¶
type CLIService ¶
type CLIService struct {
// contains filtered or unexported fields
}
func NewCLIService ¶
func NewCLIService(client *client.Lantern) *CLIService
func (*CLIService) RunArgs ¶ added in v0.16.0
func (c *CLIService) RunArgs(ctx context.Context, args []string) error
RunArgs dispatches an already-split token stream (verb + arguments) through the same grammar the REPL parses from a raw line. The one-shot verb-first CLI commands (`lantern-cli get vertex <key>`, …) call this with cobra's argv so the one-liner surface and the REPL share exactly one grammar and one dispatcher (#672).