cmds

package
v0.0.0-...-17d8b50 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBridgeCommand

func NewBridgeCommand(logger zerolog.Logger) *cobra.Command

Types

type SchemaCommand

type SchemaCommand struct {
	*cmds.CommandDescription
}

func NewSchemaCommand

func NewSchemaCommand() (*SchemaCommand, error)

func (*SchemaCommand) RunIntoWriter

func (c *SchemaCommand) RunIntoWriter(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	w io.Writer,
) error

type SchemaCommandSettings

type SchemaCommandSettings struct {
	File string `glazed.parameter:"file"`
}

type StartCommand

type StartCommand struct {
	*cmds.CommandDescription
}

func NewStartCommand

func NewStartCommand() (*StartCommand, error)

func (*StartCommand) Run

func (c *StartCommand) Run(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
) error

type StartCommandSettings

type StartCommandSettings struct {
	Transport    string   `glazed.parameter:"transport"`
	Port         int      `glazed.parameter:"port"`
	Repositories []string `glazed.parameter:"repositories"`
	Debug        bool     `glazed.parameter:"debug"`
	TracingDir   string   `glazed.parameter:"tracing-dir"`
}

type WeatherData

type WeatherData struct {
	City        string  `json:"city"`
	Temperature float64 `json:"temperature"`
	WindSpeed   float64 `json:"windSpeed"`
}

Jump to

Keyboard shortcuts

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