psdbproxy

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

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

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

README

psdbproxy

A local MySQL proxy for interacting with a PlanetScale database over HTTP.

This proxy terminates a MySQL connection on a local socket, and multiplexes all connections over an HTTP/2 stream to PlanetScale.

Currently is a WIP, but intended to be utilized as a library as well as a standalone tool.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Name          string
	Logger        *slog.Logger
	Addr          string
	UpstreamAddr  string
	ReadTimeout   time.Duration
	Authorization *auth.Authorization

	mysql.UnimplementedHandler
	// contains filtered or unexported fields
}

func (*Server) Close

func (s *Server) Close()

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(authMethod mysql.AuthMethodDescription) error

func (*Server) Serve

func (s *Server) Serve(l net.Listener, authMethod mysql.AuthMethodDescription) error

func (*Server) Shutdown

func (s *Server) Shutdown()

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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