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

datasources

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataSource

func NewDataSource(ctx context.Context, ds types.DataSource, attached bool) (Source, error)

Types

type Service

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

func New

func New(qe types.Querier, db *db.Pool, cs *catalogs.Service) *Service

func (*Service) Attach

func (s *Service) Attach(ctx context.Context, name string) error

func (*Service) AttachRuntimeSource

func (s *Service) AttachRuntimeSource(ctx context.Context, source RuntimeSource) error

func (*Service) DataSource

func (s *Service) DataSource(name string) (Source, error)

func (*Service) Detach

func (s *Service) Detach(ctx context.Context, name string, db *db.Pool) error

func (*Service) Engine

func (s *Service) Engine(name string) (engines.Engine, error)

func (*Service) HttpRequest

func (s *Service) HttpRequest(ctx context.Context, source, path, method, headers, params, body, jqq string) (any, error)

func (*Service) IsAttached

func (s *Service) IsAttached(name string) bool

func (*Service) LoadDataSource added in v0.1.8

func (s *Service) LoadDataSource(ctx context.Context, name string) error

func (*Service) Register

func (s *Service) Register(ctx context.Context, name string, ds Source) error

func (*Service) RegisterUDF

func (s *Service) RegisterUDF(ctx context.Context) error

func (*Service) Schema

func (s *Service) Schema() *ast.Schema

func (*Service) UnloadDataSource added in v0.1.8

func (s *Service) UnloadDataSource(ctx context.Context, name string) error

func (*Service) Unregister

func (s *Service) Unregister(ctx context.Context, name string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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