cmds

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnswerQuestionCommand

func NewAnswerQuestionCommand() (*geppetto_cmds.GeppettoCommand, error)

Types

type AnswerQuestionCommand

type AnswerQuestionCommand struct {
}

type IndexDocumentCommand

type IndexDocumentCommand struct {
	*cmds.CommandDescription
	// contains filtered or unexported fields
}

func NewIndexDocumentCommand

func NewIndexDocumentCommand(embedder *pkg.Embedder) (*IndexDocumentCommand, error)

func (*IndexDocumentCommand) RunIntoGlazeProcessor

func (c *IndexDocumentCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type IndexDocumentSettings

type IndexDocumentSettings struct {
	File  parameters.FileData `glazed.parameter:"file"`
	Title string              `glazed.parameter:"title"`
	Body  string              `glazed.parameter:"body"`
}

type SearchCommand

type SearchCommand struct {
	*cmds.CommandDescription

	AnswerQuestionCommand *geppetto_cmds.GeppettoCommand
	// contains filtered or unexported fields
}

func NewSearchCommand

func NewSearchCommand(embedder *pkg.Embedder) (*SearchCommand, error)

func (*SearchCommand) RunIntoGlazeProcessor

func (c *SearchCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type SearchSettings

type SearchSettings struct {
	Query  string `glazed.parameter:"query"`
	Answer bool   `glazed.parameter:"answer"`
}

Jump to

Keyboard shortcuts

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