server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:   "server",
	Usage:  "Start the server",
	Action: serverAction,
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:    "addr",
			Aliases: []string{"a"},
			Value:   ":8080",
			Usage:   "Address to listen on",
			Sources: cli.EnvVars("ADDR"),
		},
		&cli.StringFlag{
			Name:    "socket",
			Value:   "/run/knot/knot.sock",
			Usage:   "Knot control socket path",
			Sources: cli.EnvVars("KNOT_SOCKET"),
		},
		&cli.StringFlag{
			Name:     "token",
			Usage:    "Bearer token for API authentication",
			Sources:  cli.EnvVars("KNOT_REST_TOKEN"),
			Required: true,
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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