req

package
v1.18.8 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Copyright (C) 2016 Krešimir Nesek * Copyright (C) 2021 Piers Harding * * Based on blog post by Svett Ralchev: http://blog.ralch.com/tutorial/golang-ssh-tunneling/ * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details.

Index

Constants

This section is empty.

Variables

View Source
var (
	Trace *log.Logger
	Info  *log.Logger
	Error *log.Logger
)

Functions

func BuildClient

func BuildClient(config *configuration.Configuration) http.Client

create an http client with optional mTLS configuration

func BuildRequest

func BuildRequest(config *configuration.Configuration, url string, body string, method string) *http.Request

configure a request

Types

type ElasticClient

type ElasticClient struct {
	Client *http.Client

	Config *configuration.Configuration
}

type ElasticRequest

type ElasticRequest struct {
	Client *ElasticClient

	Request *http.Request
	Config  *configuration.Configuration
}

type Endpoint

type Endpoint struct {
	Host string
	Port int
}

func (*Endpoint) String

func (endpoint *Endpoint) String() string

Jump to

Keyboard shortcuts

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