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

controlledread

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

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 server-internal, fail-closed discovery reader. It implements discovery's typed ports and never accepts caller-provided SQL.

func NewService

func NewService(datasources datasourceReader, manager executorPool, secret []byte, limiter rules.RateLimiter) (*Service, error)

func (*Service) Close

func (service *Service) Close() error

Close releases the read-only pools owned by the service.

func (*Service) Discover

func (service *Service) Discover(ctx context.Context, username, datasourceID string, request discovery.ScanRequest) (discovery.ScanResult, error)

Discover applies request-level admission and a fixed overall deadline, then delegates pure classification and sampling orchestration to discovery.Scanner.

func (*Service) ListColumns

func (service *Service) ListColumns(ctx context.Context, datasourceID string, tables []discovery.TableRef) ([]discovery.ColumnMeta, error)

func (*Service) QueryColumns

func (service *Service) QueryColumns(ctx context.Context, datasourceID string, table discovery.TableRef, columns []discovery.ColumnRef, limit int) (discovery.SampleBatch, error)

Jump to

Keyboard shortcuts

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