server

package
v0.0.6-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:  "server",
	Usage: "Start a server with the specified configuration file",
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:    "bind-addr",
			Usage:   "Path to the optional configuration file",
			EnvVars: []string{"PGSTAR_BIND_ADDR"},
			Value:   "127.0.0.1:5000",
		},
		&cli.StringFlag{
			Name:     "postgres-config",
			Usage:    "Connection string for postgres connection",
			EnvVars:  []string{"PGSTAR_POSTGRES_CONFIG"},
			Required: true,
		},
		&cli.StringFlag{
			Name:    "ssl-cert",
			Usage:   "Certificate for enabling SSL",
			EnvVars: []string{"PGSTAR_SSL_CERTIFICATE"},
		},
		&cli.StringFlag{
			Name:    "ssl-key",
			Usage:   "Private key to enable SSL",
			EnvVars: []string{"PGSTAR_SSL_PRIVATE_KEY"},
		},
	},
	Action: main,
}

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