service

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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")
	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

This section is empty.

Types

type CLIService

type CLIService struct {
	// contains filtered or unexported fields
}

func NewCLIService

func NewCLIService(client *client.Lantern) *CLIService

func (*CLIService) Run

func (c *CLIService) Run(ctx context.Context, str string) error

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).

Jump to

Keyboard shortcuts

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