client

package
v0.1.4-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHBaseClient

func NewHBaseClient(addr string, headers []Header) (*hbase.THBaseServiceClient, error)

create a new hbase client

Types

type Header struct {
	Key, Value string
}

http Header attached to HBase client for example, some cloud service provider HBase instances need some authrization headers.

type RoundTripper

type RoundTripper struct {
	Headers []Header
}

RoundTrip implemnt http RoundTripper interface

func (*RoundTripper) RoundTrip

func (rt *RoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implemnt http RoundTripper interface

Jump to

Keyboard shortcuts

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