...

Source file src/github.com/cybertec-postgresql/pgwatch/v3/internal/webserver/cmdopts.go

Documentation: github.com/cybertec-postgresql/pgwatch/v3/internal/webserver

     1  package webserver
     2  
     3  const (
     4  	WebDisableAll string = "all"
     5  	WebDisableUI  string = "ui"
     6  )
     7  
     8  // CmdOpts specifies the internal web UI server command-line options
     9  type CmdOpts struct {
    10  	WebDisable  string `long:"web-disable" mapstructure:"web-disable" description:"Disable REST API and/or web UI" env:"PW_WEBDISABLE" optional:"true" optional-value:"all" choice:"all" choice:"ui"`
    11  	WebAddr     string `long:"web-addr" mapstructure:"web-addr" description:"TCP address in the form 'host:port' to listen on" default:":8080" env:"PW_WEBADDR"`
    12  	WebUser     string `long:"web-user" mapstructure:"web-user" description:"Admin login" env:"PW_WEBUSER"`
    13  	WebPassword string `long:"web-password" mapstructure:"web-password" description:"Admin password" env:"PW_WEBPASSWORD"`
    14  }
    15