client

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: GPL-3.0 Imports: 4 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)

func LoadClients

func LoadClients()

Types

type Client

type Client struct {
	Http *http.Client
	API  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