server

package
v0.0.0-...-61995a2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(c *cli.Context) error

Types

type Config

type Config struct {
	Global GlobalConfig `yaml:"global"`
	Users  []UserConfig `yaml:"users"`
}

type GlobalConfig

type GlobalConfig struct {
	ListenAddress       string `yaml:"listenAddress"`
	PrometheusAddress   string `yaml:"prometheusAddress"`
	AccessRequestHeader string `yaml:"accessRequestHeader"`
	AccessTargetLabel   string `yaml:"accessTargetLabel"`
}

type UserConfig

type UserConfig struct {
	Username string   `yaml:"username"`
	Password string   `yaml:"password"`
	Accesses []string `yaml:"accesses"`
}

Jump to

Keyboard shortcuts

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