client

package
v0.0.0-...-075d580 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Types

type Config

type Config struct {
	Hosts []*Host
}

func (*Config) Find

func (c *Config) Find(name string) *Host

type Host

type Host struct {
	Name     string
	Address  string
	CertFile string
	UserName string
	Password string
}

func (*Host) Dial

func (cfg *Host) Dial(timeout time.Duration) (net.Conn, error)

func (*Host) GetServerAddr

func (cfg *Host) GetServerAddr() string

func (*Host) RegisterFlag

func (cfg *Host) RegisterFlag()

Jump to

Keyboard shortcuts

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