types

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerInfo

type ServerInfo struct {
	Name    string `json:"name"`
	Address string `json:"address"`
	TLS     bool   `json:"tls"`
	MTLS    bool   `json:"mtls"`
	CA      []byte `json:"ca,omitempty"`
	Cert    []byte `json:"cert,omitempty"`
	Key     []byte `json:"key,omitempty"`
}

ServerInfo contains the information about servers

func (ServerInfo) HttpClient

func (s ServerInfo) HttpClient() (*http.Client, error)

type ServerInfoList

type ServerInfoList struct {
	Servers []ServerInfo `json:"servers"`
}

ServerInfo contains the information about servers

Jump to

Keyboard shortcuts

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