hiveconnect

package module
v0.0.0-...-c50cd03 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 17 Imported by: 0

README

go-hive

Documentation

Index

Constants

View Source
const DEFAULT_FETCH_SIZE int64 = 1000
View Source
const DEFAULT_MAX_LENGTH = 16384000
View Source
const ZOOKEEPER_DEFAULT_NAMESPACE = "hiveserver2"

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

func ConnectZookeeper

func ConnectZookeeper(hosts, auth string,
	configuration *ConnectionConfiguration) (conn *Connection, err error)

type ConnectionConfiguration

type ConnectionConfiguration struct {
	Username           string
	Principal          string
	Password           string
	Service            string
	HiveConfiguration  map[string]string
	PollIntervalInMS   int
	FetchSize          int64
	TransportMode      string
	HTTPPath           string
	TLSConfig          *tls.Config
	ZookeeperNamespace string
	Database           string
	ConnectTimeout     time.Duration
	SocketTimeout      time.Duration
	HttpTimeout        time.Duration
	DialContext        DialContextFunc
	DisableKeepAlives  bool
	MaxSize            uint32
}

func NewConnectionConfiguration

func NewConnectionConfiguration() *ConnectionConfiguration

type DialContextFunc

type DialContextFunc func(ctx context.Context, network, addr string) (net.Conn, error)

type HiveError

type HiveError struct {
	Message   string
	ErrorCode int
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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