Documentation
¶
Index ¶
- type Service
- func (service *Service) Close() error
- func (service *Service) Discover(ctx context.Context, username, datasourceID string, ...) (discovery.ScanResult, error)
- func (service *Service) ListColumns(ctx context.Context, datasourceID string, tables []discovery.TableRef) ([]discovery.ColumnMeta, error)
- func (service *Service) QueryColumns(ctx context.Context, datasourceID string, table discovery.TableRef, ...) (discovery.SampleBatch, error)
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) 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 ¶
Click to show internal directories.
Click to hide internal directories.