http

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 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 added in v0.0.7

type Auth struct {
	BasicAuth BasicAuth
}

Auth mechanisms supported by pinot control plane to authenticate with pinot clusters

type BasicAuth added in v0.0.7

type BasicAuth struct {
	UserName string
	Password string
}

BasicAuth

type Client

type Client struct {
	Method     string
	URL        string
	HTTPClient http.Client
	Body       []byte
	Auth       Auth
}

HTTP client

func (*Client) Do

func (c *Client) Do() (*Response, error)

Do method to be used schema and tenant controller.

type PinotHTTP

type PinotHTTP interface {
	Do() (*Response, error)
}

PinotHTTP interface

func NewHTTPClient

func NewHTTPClient(method, url string, client http.Client, body []byte, auth Auth) PinotHTTP

type Response added in v0.0.8

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