client

package
v0.0.135 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHttpClient

func GenerateHttpClient(ca *keys.CA, client *keys.Client) (*http.Client, error)

Types

type Client

type Client struct {
	Http     *http.Client
	Username string
	API      string
	IPs      []net.IP
	Domains  []string
}

type Http

type Http struct {
	Clients map[string]*Client
	Nodes   map[uint64]string
}

func GenerateHttpClients added in v0.0.129

func GenerateHttpClients(nodeName string, keys *keys.Keys, cluster *cluster.Cluster) (*Http, error)

func NewHttpClients

func NewHttpClients() *Http

func (*Http) Append

func (http *Http) Append(username string, client *Client)

func (*Http) FindValidFor added in v0.0.129

func (http *Http) FindValidFor(DomainOrIp string) *Client

func (*Http) Get

func (http *Http) Get(username string) *Client

Jump to

Keyboard shortcuts

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