channel

package
v34.0.0-...-858ae27 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelBuilder

type ChannelBuilder struct {
	Scheme  string
	Host    string
	Port    int
	Path    string
	Query   string
	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)

Jump to

Keyboard shortcuts

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