channel

package
v34.0.0-...-f7ad518 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelBuilder

type ChannelBuilder struct {
	Host    string
	Port    int
	Token   string
	User    string
	Headers map[string]string
}

The ChannelBuilder is used to parse the different parameters of the connection string according to the specification documented here:

https://github.com/apache/spark/blob/master/connector/connect/docs/client-connection-string.md

func NewBuilder

func NewBuilder(connection string) (*ChannelBuilder, error)

Creates a new instance of the ChannelBuilder. This constructor effectively parses the connection string and extracts the relevant parameters directly.

func (*ChannelBuilder) Build

func (cb *ChannelBuilder) Build() (*grpc.ClientConn, error)

Finalizes the creation of the gprc.ClientConn by creating a GRPC channel with the necessary options extracted from the connection string. For TLS connections, this function will load the system certificates.

Jump to

Keyboard shortcuts

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