config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Domain   string `help:"Domain of the OpenSlides server to probe." short:"d" default:"localhost:8000"`
	Username string `help:"Username for logged-in requests." short:"u" default:"admin"`
	Password string `help:"Password to use for logged-in requests." short:"p" default:"admin"`
	HTTP     bool   `help:"Use http instead of https. Default is https."`
	IPv4     bool   `help:"Force IPv4 for requests." short:"4"`
}

Config for all commands.

func (*Config) Addr

func (c *Config) Addr() string

Addr returns the domain with the http or https prefix.

Jump to

Keyboard shortcuts

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