cmd

package
v0.0.0-...-667b3ce Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Server ServerCmd `cmd:"" help:"start the server"`
}

type ServerCmd

type ServerCmd struct {
	Port     int    `help:"port to run http server" default:"8080"`
	DBServer string `help:"URL to the rqlite API" default:"http://localhost:4001"`
	Github   struct {
		Key      string `help:"key to the application" env:"GITHUB_KEY"`
		Secret   string `help:"secret to the application" env:"GITHUB_SECRET"`
		Callback string `help:"callback URL to the auth endpoint" env:"GITHUB_CALLBACK" default:"http://localhost:8080/auth/github/callback"`
	} `embed:"" prefix:"github."`
	SessionSecret string `help:"used to encrypt the session cookie" env:"SESSION_SECRET" required:""`
}

func (*ServerCmd) Run

func (c *ServerCmd) Run() error

Jump to

Keyboard shortcuts

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