http

package
v1.3.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	BasicAuth BasicAuth
}

Auth mechanisms supported by Druid control plane to authenticate with druid clusters

type BasicAuth

type BasicAuth struct {
	UserName string
	Password string
}

BasicAuth

type DruidClient

type DruidClient struct {
	HTTPClient *http.Client
	Auth       *Auth
}

HTTP client

func (*DruidClient) Do

func (c *DruidClient) Do(Method, url string, body []byte) (*Response, error)

Do method to be used schema and tenant controller.

type DruidHTTP

type DruidHTTP interface {
	Do(method, url string, body []byte) (*Response, error)
}

DruidHTTP interface

func NewHTTPClient

func NewHTTPClient(client *http.Client, auth *Auth) DruidHTTP

type Response

type Response struct {
	ResponseBody string
	StatusCode   int
}

Response passed to controller

Jump to

Keyboard shortcuts

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