sqlauthproxy

package
v0.0.0-...-9758eb9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(l net.Listener, config Config) error

Types

type Config

type Config struct {
	Logger               *zap.Logger
	Hostname             string
	Port                 int
	RdsIam               bool
	AzureAD              bool
	Kerberos             bool
	Username             string
	Password             string
	UpstreamType         string
	UpstreamCAFile       string
	UpstreamCertFile     string
	UpstreamKeyFile      string
	UpstreamCABlock      []byte
	UpstreamCertBlock    []byte
	UpstreamKeyBlock     []byte
	UpstreamTLS          bool
	AwsRegion            string
	AwsCredentials       *common.AwsCredentials
	DialerFunc           func(context.Context, string, string) (net.Conn, error)
	E2eEncryptionEnabled bool
	Socket               models.Socket
	Border0API           border0.Border0API
}

func BuildHandlerConfig

func BuildHandlerConfig(logger *zap.Logger, socket models.Socket, border0API border0.Border0API) (*Config, error)

type QueryStats

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

Jump to

Keyboard shortcuts

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