Help us shape the future of Go! Take the 2026 Go Developer Survey

rdsdata

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package rdsdata emulates the RDS Data API (REST-JSON): SQL statements, batches and transactions on the databases of pogi's Aurora clusters, with credentials from Secrets Manager. PostgreSQL goes through pgx, MySQL through its database/sql driver.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is the RDS Data API emulator.

func New

func New(hub *core.Hub) *Service

New creates the Data API service.

func (*Service) Close

func (s *Service) Close() error

Close rolls back open transactions and closes the pools.

func (*Service) Info

func (s *Service) Info() core.Info

func (*Service) ServeHTTP

func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Service) Tick

func (s *Service) Tick(now time.Time)

Tick rolls back transactions idle for three minutes, as the Data API does.

Jump to

Keyboard shortcuts

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