client

package
v0.0.84 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

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
}

func NewHttpClients

func NewHttpClients() *Http

func (*Http) Append

func (http *Http) Append(username string, client *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