cmd

package
v0.0.0-...-eab8366 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientCmd = cli.Command{
	Name:  "client",
	Usage: "A client (prover) that wants to prove something to the server (verifier)",

	Flags:       clientFlags,
	Subcommands: clientSubcommands,
}
View Source
var ServerCmd = cli.Command{
	Name:  "server",
	Usage: "A server (verifier) that verifies clients (provers)",
	Subcommands: []cli.Command{
		{
			Name:  "start",
			Usage: "Starts emmy server",
			Flags: serverFlags,
			Action: func(ctx *cli.Context) error {
				err := startEmmyServer(
					ctx.Int("port"),
					ctx.String("cert"),
					ctx.String("key"),
					ctx.String("db"),
					ctx.String("logfile"),
					ctx.String("loglevel"))
				if err != nil {
					return cli.NewExitError(err, 1)
				}
				return nil
			},
		},
	},
}

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