client

package
v0.0.0-...-d78727d Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *Config) (err error)

Types

type AuthConfig

type AuthConfig struct {
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Disabled bool   `yaml:"disabled"`
}

type Config

type Config struct {
	ServerURL string         `yaml:"server_url"`
	Routes    []*RouteConfig `yaml:"routes"`
	Auth      *AuthConfig    `yaml:"auth"`
}

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

type RouteConfig

type RouteConfig struct {
	Name      string      `yaml:"name"`
	LocalAddr string      `yaml:"local_addr"`
	Auth      *AuthConfig `yaml:"auth"`
	Disabled  bool        `yaml:"disabled"`
}

Jump to

Keyboard shortcuts

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